<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@cxf.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/cxf-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/cxf-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/cxf-users/</id>
<updated>2009-12-07T04:26:04Z</updated>
<entry>
<title>RE: Race condition when using UriInfo to get  baseUri value</title>
<author><name>&quot;Sergey Beryozkin&quot; &lt;sberyozk@progress.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3cD9D39D1E52C5514C94DE9B5E928C72DB039593C5@MAIL02.bedford.progress.com%3e"/>
<id>urn:uuid:%3cD9D39D1E52C5514C94DE9B5E928C72DB039593C5@MAIL02-bedford-progress-com%3e</id>
<updated>2009-12-06T18:22:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Sadhana

Yes please, some more information/clarification would help.

Do 192.168.1.102 &amp;&amp; localhost identify the same host in your particular
case ?

  
"We send a request to say host http://192.168.1.102:9000
and then send a ping request to say http://localhost:9000 where both
requests are going to the same host but different addresses"

I need  some more details please. Does gwy.ws.jaxrs.ElaborationProcessor
delegates to gwy.ws.jaxrs.UriInfoManager ? Are these 2 beans share the
same jaxrs:server endpoint ? Does gwy.ws.jaxrs.ElaborationProcessor
shows http://192.168.1.102:9000 with UriInfo.getBaseUri() but when it
delegates to   
gwy.ws.jaxrs.UriInfoManager it shows localhost ?

cheers, Sergey 

-----Original Message-----
From: Sadhana Jain [mailto:Sadhana.Jain@rovicorp.com] 
Sent: 05 December 2009 01:15
To: users@cxf.apache.org
Subject: Race condition when using UriInfo to get baseUri value

Hi,

We are using the UriInfo object to getBasrUri() and using UriBuilder to
build and create linked URIs for our rest based services.

However, we are seeing a strange race condition:

We send a request to say host http://192.168.1.102:9000
and then send a ping request to say http://localhost:9000 where both
requests are going to the same host but different addresses, the
UriInfo object returns the base uri of the second request instead of the
first one. So, it seems the UriInfo or message object is somehow
Being shared between threads.

Following is the log that shows the problem 9 I have hightlighted the
hostname and thread numbers.

[INFO ][17:05:02,258][::][v()][t(http-9000-2)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.jav
a:12
9) ]
---- elaboration map: {host=192.168.1.102:9000,
gateway-version=1.2.11-2,
reply=json, user-agent=curl/7.16.3 (powerpc-apple-darwin9.0)
libcurl/7.16.3
OpenSSL/0.9.7l zlib/1.2.3, Accept=*/*}
[INFO ][17:05:02,257][::][v()][t(http-9000-1)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.jav
a:12
9) ]
---- elaboration map: {host=localhost:9000, gateway-version=1.2.11-2,
reply=json, user-agent=curl/7.16.3 (powerpc-apple-darwin9.0)
libcurl/7.16.3
OpenSSL/0.9.7l zlib/1.2.3, Accept=*/*}
[DEBUG][17:05:02,258][::][v()][t(http-9000-2)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.jav
a:14
7) ]
---- request method: GET
[DEBUG][17:05:02,258][::][v()][t(http-9000-1)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.jav
a:14
7) ]
---- request method: GET
[DEBUG][17:05:02,259][::][v()][t(http-9000-2)]
[ gwy.ws.jaxrs.UriInfoManager.setUi(UriInfoManager.java:51) ]
---- setUi() beging UriInfo base URI: http://localhost:9000/domain
[DEBUG][17:05:02,259][::][v()][t(http-9000-1)]
[ gwy.ws.jaxrs.UriInfoManager.setUi(UriInfoManager.java:51) ]
---- setUi() beging UriInfo base URI: http://localhost:9000/domain

Any help is much appreciated.

Please let me know if I can supply more info.

Thanks,
Sadhana


</pre>
</div>
</content>
</entry>
<entry>
<title>multiple xjc args in extraargs for Maven cxf-codegen-plugin configuration</title>
<author><name>stug23 &lt;pat.podenski@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c26658501.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26658501-post@talk-nabble-com%3e</id>
<updated>2009-12-05T19:35:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

After a bit of trial and error, I was able to apply multiple sets of xjc args
in respective extraargs.

This is handy when you need to specify multiple JAXB plugins and multiple
episodes for JAXB. Note that I still paired the related args with a
comma-delimiter in a single extraarg element (e.g.,
"-xjc-Xname,-Xname-classSubstitution=/$/Dto/")

I am including the entire Maven cxf-codegen-plugin XML with the extraargs
configuration here in case this is useful to anyone else.

-----------------------------------
&lt;plugin&gt;
    &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
    &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
    &lt;version&gt;${cxf.version}&lt;/version&gt;
    &lt;dependencies&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.cassee.xjc-plugins&lt;/groupId&gt;
            &lt;artifactId&gt;xjc-plugins-classname&lt;/artifactId&gt;
            &lt;version&gt;0.3&lt;/version&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;executions&gt;
        &lt;execution&gt;
            &lt;id&gt;generate-sources&lt;/id&gt;
            &lt;phase&gt;generate-sources&lt;/phase&gt;
            &lt;configuration&gt;
                &lt;verbose&gt;true&lt;/verbose&gt;
               
&lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
                &lt;wsdlOptions&gt;
                    &lt;wsdlOption&gt;
                       
&lt;wsdl&gt;${basedir}/src/main/wsdl/TrainTrackService.wsdl&lt;/wsdl&gt;
                        &lt;extraargs&gt;
                            &lt;extraarg&gt;-xjc-verbose&lt;/extraarg&gt;
                           
&lt;extraarg&gt;-xjc-b,${basedir}/src/main/wsdl/core-response.episode&lt;/extraarg&gt;
                           
&lt;extraarg&gt;-xjc-Xname,-Xname-classSubstitution=/$/Dto/&lt;/extraarg&gt;
                           
&lt;extraarg&gt;-xjc-episode,${project.build.outputDirectory}/train-track-service.episode&lt;/extraarg&gt;
                        &lt;/extraargs&gt;
                    &lt;/wsdlOption&gt;
                &lt;/wsdlOptions&gt;
            &lt;/configuration&gt;
            &lt;goals&gt;
                &lt;goal&gt;wsdl2java&lt;/goal&gt;
            &lt;/goals&gt;
        &lt;/execution&gt;
    &lt;/executions&gt;
&lt;/plugin&gt;
-----------------------------------
-- 
View this message in context: http://old.nabble.com/multiple-xjc-args-in-extraargs-for-Maven-cxf-codegen-plugin-configuration-tp26658501p26658501.html
Sent from the cxf-user mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: AW: Problem with code generation and binding files</title>
<author><name>stug23 &lt;pat.podenski@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c26657819.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26657819-post@talk-nabble-com%3e</id>
<updated>2009-12-05T18:02:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am on a project that is considering a switch to Apache CXF from Sun JAXWS.

For a while I have been following developments for CXF and have noted that
support for JAXB episode seems to be still in a formative stage. Is there a
document for the WSDL-to-Java Maven plugin for CXF that describes each
configuration parameter, especially how to pass arguments to JAXB for
episodes and/or JAXB plugins?

A helpful posting on what episodes are and how they are used can be found
here:

  &lt;http://weblogs.java.net/blog/2006/09/05/separate-compilation-jaxb-ri-21&gt;

Thanks




dkulp wrote:
&gt; 
&gt; On Sun July 5 2009 7:53:46 pm johannes.konstantinidis@capgemini-sdm.com
&gt; wrote:
&gt;&gt; Hello,
&gt;&gt;
&gt;&gt; does anybody have an idea?
&gt;&gt; My problem still exists.
&gt; 
&gt; As Benson stated, a JIRA with a reproducible test case would be great.  
&gt; I've 
&gt; heard of issues with episode files before as well, but I've never used an 
&gt; episode file so I really don't know enough to dig in without some sort of 
&gt; test. 
&gt; 
&gt; Dan
&gt; 
&gt; 
&gt;&gt;
&gt;&gt; Thanks
&gt;&gt;
&gt;&gt;
&gt;&gt; -----Ursprüngliche Nachricht-----
&gt;&gt; Von: Konstantinidis, Johannes
&gt;&gt; Gesendet: Dienstag, 23. Juni 2009 19:15
&gt;&gt; An: users@cxf.apache.org
&gt;&gt; Betreff: Problem with code generation and binding files
&gt;&gt;
&gt;&gt; Hello,
&gt;&gt;
&gt;&gt; I have a problem with the generation of the CXF classes when the JAXB
&gt;&gt; classes have been generated before via separate compilation with episode
&gt;&gt; files.
&gt;&gt;
&gt;&gt; I have a WSDL (service.wsdl) which imports a xml schema (service.xsd)
&gt;&gt; that
&gt;&gt; defines all types for service invocation. In addition I have a xml schema
&gt;&gt; with some basic types (common.xsd) which is imported by service.xsd.
&gt;&gt;
&gt;&gt; The whole generation takes place in one build within one project. No
&gt;&gt; compilation is performed between the different steps.
&gt;&gt;
&gt;&gt; At first I generate the JAXB classes for service.xsd and common.xsd with
&gt;&gt; the JAXB Maven Plugin (org.jvnet.jaxb2/maven2.maven-jaxb2-plugin). Now I
&gt;&gt; have the classes and the two episode files for them.
&gt;&gt;
&gt;&gt; Now I would like to generate the CXF classes with the Maven Plugin
&gt;&gt; (org.apache.cxf/ cxf-codegen-plugin).
&gt;&gt;
&gt;&gt; &lt;wsdlOption&gt;
&gt;&gt;  &lt;wsdl&gt;src/main/resources/service.wsdl&lt;/wsdl&gt;
&gt;&gt;  &lt;bindingFiles&gt;
&gt;&gt;    
&gt;&gt; &lt;bindingFile&gt;${project.build.directory}/generated-sources/xjc/common.episod
&gt;&gt;e&lt;/bindingFile&gt;
&gt;&gt; &lt;bindingFile&gt;${project.build.directory}/generated-sources/xjc/service.episo
&gt;&gt;de&lt;/bindingFile&gt; &lt;/bindingFiles&gt;
&gt;&gt;  &lt;extraargs&gt;
&gt;&gt;   &lt;extraarg&gt;-impl&lt;/extraarg&gt;
&gt;&gt;   &lt;extraarg&gt;-server&lt;/extraarg&gt;
&gt;&gt;   &lt;extraarg&gt;-validate&lt;/extraarg&gt;
&gt;&gt;  &lt;/extraargs&gt;
&gt;&gt; &lt;/wsdlOption&gt;
&gt;&gt;
&gt;&gt; That results in an error message: Failed to create java parameter for
&gt;&gt; part
&gt;&gt; [test] in method [test] It seems that the generator can not retrieve the
&gt;&gt; class name of test although it is specified within the corresponding
&gt;&gt; episode file. Btw, I tested the wsdl with the wsdlvalidator tool.
&gt;&gt;
&gt;&gt; When I try to specify some package names in addition to the binding files
&gt;&gt;
&gt;&gt;  &lt;packagenames&gt;
&gt;&gt;    
&gt;&gt; &lt;package&gt;http://my.example.com/WSDLNamespace=my.example.com.ws&lt;/package&gt;
&gt;&gt; &lt;package&gt;http://my.example.com/Service=my.example.com.ws.service&lt;/package&gt;
&gt;&gt; &lt;package&gt;http://my.example.com/Common=my.example.com.ws.common&lt;/package&gt;
&gt;&gt; &lt;/packagenames&gt;
&gt;&gt;
&gt;&gt; I get an error
&gt;&gt; Thrown by JAXB : Multiple &lt;schemaBindings&gt; are defined for the target
&gt;&gt; namespace http://my.example.com/Service at line 5 column 22 of schema  
&gt;&gt; temporary xsd file&gt;
&gt;&gt;
&gt;&gt; What is my fault?
&gt;&gt; Btw: Is it possible not to delete the temporary xsd file just to get more
&gt;&gt; information about problem?
&gt;&gt;
&gt;&gt; Thanks for your help!
&gt; 
&gt; -- 
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Problem-with-code-generation-and-binding-files-tp24170728p26657819.html
Sent from the cxf-user mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 not available in Maven central</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c26653908.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26653908-post@talk-nabble-com%3e</id>
<updated>2009-12-05T08:59:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Thanks Daniel.

Yes I was using ibiblio:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/cxf/cxf-rt-core/

Are ibiblio having problems with repo1 ?

Now I know repo1 is OK, however Maven repo searches (mvnrepository.com) use
ibiblio, which is not uptodate now.

Anyway, it's not CXF's fault. Thanks Daniel.


dkulp wrote:
&gt; 
&gt; On Fri December 4 2009 1:40:29 pm Hendy Irawan wrote:
&gt;&gt; I just checked that the latest CXF available in Maven central is CXF
&gt;&gt; 2.2.4.
&gt;&gt; 
&gt;&gt; Is it planned to deploy CXF 2.2.5 to Maven central?
&gt; 
&gt; It has been deployed there.   I see it fine:
&gt; 
&gt; http://repo1.maven.org/maven2/org/apache/cxf/cxf-rt-core/2.2.5/
&gt; 
&gt; Are you using a mirror or something that hasn't been updated?
&gt; -- 
&gt; Daniel Kulp
&gt; 

-- 
View this message in context: http://old.nabble.com/CXF-2.2.5-not-available-in-Maven-central-tp26636372p26653908.html
Sent from the cxf-user mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Race condition when using UriInfo to get  baseUri value</title>
<author><name>Sadhana Jain &lt;Sadhana.Jain@rovicorp.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3cC73EF40F.B48C%25Sadhana.Jain@rovicorp.com%3e"/>
<id>urn:uuid:%3cC73EF40F-B48C%25Sadhana-Jain@rovicorp-com%3e</id>
<updated>2009-12-05T01:14:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Content-type: text/plain;
	charset="US-ASCII"
Content-transfer-encoding: 7bit

Hi,

We are using the UriInfo object to getBasrUri() and using UriBuilder to
build and create linked URIs for our rest based services.

However, we are seeing a strange race condition:

We send a request to say host http://192.168.1.102:9000
and then send a ping request to say http://localhost:9000 where both
requests are going to the same host but different addresses, the
UriInfo object returns the base uri of the second request instead of the
first one. So, it seems the UriInfo or message object is somehow
Being shared between threads.

Following is the log that shows the problem 9 I have hightlighted the
hostname and thread numbers.

[INFO ][17:05:02,258][::][v()][t(http-9000-2)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.java:12
9) ]
---- elaboration map: {host=192.168.1.102:9000, gateway-version=1.2.11-2,
reply=json, user-agent=curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3
OpenSSL/0.9.7l zlib/1.2.3, Accept=*/*}
[INFO ][17:05:02,257][::][v()][t(http-9000-1)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.java:12
9) ]
---- elaboration map: {host=localhost:9000, gateway-version=1.2.11-2,
reply=json, user-agent=curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3
OpenSSL/0.9.7l zlib/1.2.3, Accept=*/*}
[DEBUG][17:05:02,258][::][v()][t(http-9000-2)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.java:14
7) ]
---- request method: GET
[DEBUG][17:05:02,258][::][v()][t(http-9000-1)]
[ 
gwy.ws.jaxrs.ElaborationProcessor.handleRequest(ElaborationProcessor.java:14
7) ]
---- request method: GET
[DEBUG][17:05:02,259][::][v()][t(http-9000-2)]
[ gwy.ws.jaxrs.UriInfoManager.setUi(UriInfoManager.java:51) ]
---- setUi() beging UriInfo base URI: http://localhost:9000/domain
[DEBUG][17:05:02,259][::][v()][t(http-9000-1)]
[ gwy.ws.jaxrs.UriInfoManager.setUi(UriInfoManager.java:51) ]
---- setUi() beging UriInfo base URI: http://localhost:9000/domain

Any help is much appreciated.

Please let me know if I can supply more info.

Thanks,
Sadhana


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 not available in Maven central</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041345.21794.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041345-21794-dkulp@apache-org%3e</id>
<updated>2009-12-04T18:45:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri December 4 2009 1:40:29 pm Hendy Irawan wrote:
&gt; I just checked that the latest CXF available in Maven central is CXF 2.2.4.
&gt; 
&gt; Is it planned to deploy CXF 2.2.5 to Maven central?

It has been deployed there.   I see it fine:

http://repo1.maven.org/maven2/org/apache/cxf/cxf-rt-core/2.2.5/

Are you using a mirror or something that hasn't been updated?
-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Firewall-friendly connection establishment</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041344.05257.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041344-05257-dkulp@apache-org%3e</id>
<updated>2009-12-04T18:44:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Wow.  Interesting case.   You're going to have to write a custom transport for 
this.     Normally, a custom transport isn't that hard.   A Conduit for the 
client side and a Destination for the server side.   However, in this case 
where the conduit becomes a destination and vice-versa might require a bit 
extra work under the covers to achieve.

Dan


On Fri December 4 2009 4:16:29 am Fromm, Stefan wrote:
&gt; Hello,
&gt; 
&gt; I have the following scenario. A web service is running on the internet.
&gt; My intranet server connects to this web service. After connection the
&gt; web service is supposed to reuse the connection, become the client and
&gt; send requests to the intranet server. This is firewall-friendly, because
&gt; I do not have to open my intranet firewall to allow incoming requests.
&gt; Instead I have to open the firewall for outgoing requests only. Once the
&gt; connection is established, the web service could reuse it and send its
&gt; requests. Using plain sockets it is simple to implement such a scenario.
&gt; My question is, if this would also be possible with CXF? The underlying
&gt; protocol can be HTTP(S) or TCP(S). I would need some hints where to
&gt; start from reading documentation, because I am new to CXF.
&gt; 
&gt; Best regards
&gt; Stefan Fromm
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>CXF 2.2.5 not available in Maven central</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c26636372.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26636372-post@talk-nabble-com%3e</id>
<updated>2009-12-04T18:40:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I just checked that the latest CXF available in Maven central is CXF 2.2.4.

Is it planned to deploy CXF 2.2.5 to Maven central?
-- 
View this message in context: http://old.nabble.com/CXF-2.2.5-not-available-in-Maven-central-tp26636372p26636372.html
Sent from the cxf-user mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: High memory usage with web service registration</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041339.17001.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041339-17001-dkulp@apache-org%3e</id>
<updated>2009-12-04T18:39:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Actually, looking at the code, you may already be able to do this.   The 
JAXBDataBinding has a constructor of:

JAXBDataBinding(JAXBContext context)

Thus, via config or similar, you should be able to setup your own 
JAXBDataBinding object using a preconfigured JAXBContext.     Not sure how 
well tested that is though.

Dan



On Thu December 3 2009 11:33:52 pm Basavaraja U T wrote:
&gt; Hi Dan,
&gt; 
&gt; XFire has provided a mechanism to re-use the JAXBContext across different
&gt; web service publishing.
&gt; 
&gt; The Bug Id - XFIRE-669. (http://jira.codehaus.org/browse/XFIRE-669)
&gt; 
&gt; Seems it lets us to pass an existing JAXBContext to a JaxbServiceFactory.
&gt; The context is then used by all layers from there. i.e. we can construct
&gt;  one JAXBContext object with all the ObjectFactory.class'es from wsdl2java
&gt;  tool generated java files and re-use the JAXBContext object for multiple
&gt;  web service publishing.
&gt; 
&gt; It helps to reduce the memory usage if there is large no. of related web
&gt; services (like MTOSI solution, which has around 30-40 interfaces) are
&gt; published by an application.
&gt; 
&gt; It would be great if such a mechanism is provided by CXF also.
&gt; 
&gt; With regards,
&gt; Basava
&gt; 
&gt; ***************************************************************************
&gt; * ***********
&gt; This e-mail and attachments contain confidential information from HUAWEI,
&gt; which is intended only for the person or entity whose address is listed
&gt; above. Any use of the information contained herein in any way (including,
&gt; but not limited to, total or partial disclosure, reproduction, or
&gt; dissemination) by persons other than the intended recipient's) is
&gt; prohibited. If you receive this e-mail in error, please notify the sender
&gt;  by phone or email immediately and delete it!
&gt; 
&gt; -----Original Message-----
&gt; From: Daniel Kulp [mailto:dkulp@apache.org]
&gt; Sent: Wednesday, November 18, 2009 1:37 AM
&gt; To: users@cxf.apache.org
&gt; Cc: Basavaraja U T
&gt; Subject: Re: High memory usage with web service registration
&gt; 
&gt; 
&gt; 
&gt; In a way, I'm not exactly surprised by this.  I just tried debugging some
&gt;  of
&gt; 
&gt; the annotation stuff in the JRE and annotations are stored in
&gt; LinkedHashMaps.
&gt; Those hashmaps are definitely not the most  memory efficient, especially
&gt;  for
&gt; 
&gt; cases where there are only one or two annotations.   Only Sun/Oracle can do
&gt; much about that.
&gt; 
&gt; JAXB COULD probably not output annotations in cases where the defaults
&gt;  would
&gt; 
&gt; match what the annotation is setting anyway.  That could be an enhancement
&gt; request to them.    You could possibly even write an XJC plugin that would
&gt; remove the annotations in the places where they aren't needed.   That could
&gt; help.
&gt; 
&gt; I'm really not sure what else to suggest.  You COULD create a list of ALL
&gt; the
&gt; jaxb generated classes in all the services and configure them as extra
&gt; classes.   Thus, every service would create their jaxb context based on all
&gt; the classes.   We detect when they are the same and allow the services to
&gt; share a JAXB context instead of creating a new one.   However, that would
&gt; allow the services to "know" more than they really should.
&gt; 
&gt; Dan
&gt; 
&gt; On Tue November 17 2009 2:40:06 am Basavaraja U T wrote:
&gt; &gt; Hi All,
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; I am facing a high memory usage problem with web service registration
&gt; &gt; when wsdl has lots of simple and complex type definitions. I am using
&gt; &gt; jaxb(default) databinding and memory usage is quite high, it is in the
&gt; &gt; range of 2 to 8 MBs for each of the web service registration. I have
&gt; &gt; around 20 web services in an application and total memory usage for web
&gt; &gt; services registration alone is taking more than 60 MB!.
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; I observed the behavior with cxf 2.2 and cxf 2.3 on Windows XP.
&gt; &gt;
&gt; &gt; I observed there were lots of annotations in java files generated from
&gt; &gt; wsdl2java. When these annotations were removed(for testing), the memory
&gt; &gt; usage was drastically less.
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; Is there any way to reduce/optimize the memory usage?
&gt; &gt;
&gt; &gt; Is there any optimizations with respect to annotations/binding generated
&gt; 
&gt; by
&gt; 
&gt; &gt; wsdl2java.
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; With regards,
&gt; &gt;
&gt; &gt; Basava
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>CXF 2.2.5 not available in Maven central</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c26636371.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26636371-post@talk-nabble-com%3e</id>
<updated>2009-12-04T18:38:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I just checked that the latest CXF available in Maven central is CXF 2.2.4.

Is it planned to deploy CXF 2.2.5 to Maven central?
-- 
View this message in context: http://old.nabble.com/CXF-2.2.5-not-available-in-Maven-central-tp26636371p26636371.html
Sent from the cxf-user mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: client socket properties</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041326.54877.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041326-54877-dkulp@apache-org%3e</id>
<updated>2009-12-04T18:26:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri December 4 2009 3:46:43 am vogelfanger wrote:
&gt; Hi all,
&gt; 
&gt;   anyone here knows how to change (or even display) the client TCP socket
&gt; properties that the web service is using? For example, how can I know if
&gt; socket has 'nagle algorithm' enabled or disabled? (tcpNoDelay property),
&gt;  and disable it if necessary?

Honestly, I'm not sure there is a way.   We use the JDK's HttpURLConnection 
object which doesn't seem to expose the raw socket.   

Dan


&gt; 
&gt; thanks in advance.
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Dispatch - how to get exception as soap message</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041246.24333.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041246-24333-dkulp@apache-org%3e</id>
<updated>2009-12-04T17:46:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I'm not really seeing a way to do it without writing an interceptor.   CXF, 
generally, tries to discard things that aren't needed anymore whenever it can.   
In this case, by the time the exception is thrown, the SOAPMessage has been 
discarded.

Using an interceptor, you could save the SOAPMessage and then retrieve it 
later view the dispatch.getResponseContext().     It would really be something 
like:

SOAPMessage m = msg.getContent(SOAPMessage.class);
msg.put("my.soap.message", m);


That should stick it in the response context.

Dan


On Thu November 26 2009 5:02:39 am Lukasz Lichota wrote:
&gt; Hi,
&gt; 
&gt; I'm using Dispatch and I'd like to return soap message (as e.g. Source) no
&gt; matter if there was an exception or normal response, is there a way to tell
&gt; Dispatch not to throw SOAPFaultException?
&gt; If not, what's the easiest way to transform it to the whole-message Source?
&gt; I can do something like this:
&gt; 		catch(SOAPFaultException e)
&gt; 		{
&gt; 			SOAPFault fault = e.getFault();
&gt; 			Source response = new DOMSource(fault);
&gt; 		}
&gt; but then response contains only soap:fault without body and envelope. How
&gt;  to easily construct the whole envelope? Do I need to manually create XML
&gt;  for soap elements is maybe there's any utility to do this?
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: WSDL2Java with -allowElementReferences with cxf 2.2.x</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041155.33515.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041155-33515-dkulp@apache-org%3e</id>
<updated>2009-12-04T16:55:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu November 19 2009 8:06:36 pm Shannon Hastings wrote:
&gt; When in run wsdl to java on a wsdl doc using references in the message
&gt;  where the message uses the same data type twice, ie to create a method
&gt;  that looks like foo(Bar arg1, Bar arg2) I get the following error from
&gt;  wsdlToJava:

Well, jaxws doesn't really allow us to automatically change/increment names 
when doing wsdl2java.   If there is a conflict, you're supposed to use a 
binding file to remap the name.

That said, we have a -autoNameResolution flag that can also be passed to 
automatically do the name increment thing.   That may work for this case.

Another thing you could try is:

  &lt;element ref="introduce-ns0:Service" minOccurs="2" maxOccurs="2"/&gt;

That would generate as  a List&lt;Service&gt;, but would probably work.

Dan


&gt; WSDLToJava Error: Element {http://org.cagrid.introduce/2/Services}Service
&gt; has Having the same name with different types[null -- null],  In wrapper
&gt; style, there is a collision as per the spec.
&gt; 
&gt; I do not get there error if I only have one ref of the Bar type.  Below is
&gt; the snippit of wsdl that causes this error (note: the element test uses the
&gt; introduce-ns0:Service  type twice which seems to be ok with spec and I
&gt;  would expect it to create the method test(Service arg1, Service arg2) ).
&gt; 
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;wsdl:definitions name="TTTesting" targetNamespace="http://testing.org"
&gt;     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
&gt; xmlns:tns="http://testing.org"
&gt;     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
&gt; xmlns:addr="http://www.w3.org/2001/XMLSchema"
&gt;     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
&gt; xmlns:introduce-ns0="http://org.cagrid.introduce/2/Services"&gt;
&gt;     &lt;wsdl:types&gt;
&gt;         &lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
&gt; xmlns:wsa="http://www.w3.org/2005/08/addressing"
&gt;             elementFormDefault="qualified"
&gt; targetNamespace="http://testing.org"&gt;
&gt;             &lt;import namespace="http://org.cagrid.introduce/2/Services"
&gt;                 schemaLocation="./Services.xsd" /&gt;
&gt; 
&gt;             &lt;element name="test"&gt;
&gt;                 &lt;complexType&gt;
&gt;                     &lt;sequence&gt;
&gt;                         &lt;element ref="introduce-ns0:Service" /&gt;
&gt;                         &lt;element ref="introduce-ns0:Service" /&gt;
&gt;                     &lt;/sequence&gt;
&gt;                 &lt;/complexType&gt;
&gt;             &lt;/element&gt;
&gt;             &lt;element name="testResponse"&gt;
&gt;                 &lt;complexType&gt;
&gt;                     &lt;sequence&gt;
&gt;                         &lt;element ref="introduce-ns0:Service" /&gt;
&gt;                     &lt;/sequence&gt;
&gt;                 &lt;/complexType&gt;
&gt;             &lt;/element&gt;
&gt;         &lt;/schema&gt;
&gt;     &lt;/wsdl:types&gt;
&gt;     &lt;wsdl:message name="test"&gt;
&gt;         &lt;wsdl:part name="parameters" element="tns:test"&gt;
&gt;         &lt;/wsdl:part&gt;
&gt;     &lt;/wsdl:message&gt;
&gt;     &lt;wsdl:message name="test_ResourceFrameworkOptions"&gt;
&gt;         &lt;wsdl:part name="fault"
&gt; element="introduce-ns0:ResourceFrameworkOptions"&gt;
&gt;         &lt;/wsdl:part&gt;
&gt;     &lt;/wsdl:message&gt;
&gt;     &lt;wsdl:message name="testResponse"&gt;
&gt;         &lt;wsdl:part name="parameters" element="tns:testResponse"&gt;
&gt;         &lt;/wsdl:part&gt;
&gt;     &lt;/wsdl:message&gt;
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: WSDL2JAVA, store WSDLs and XSDs locally</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041151.51827.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041151-51827-dkulp@apache-org%3e</id>
<updated>2009-12-04T16:51:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu November 19 2009 12:53:33 am Craig Tataryn wrote:
&gt; Problem we've faced with the catalog solution is the case where the
&gt; XSDs your WSDL is referencing also references other XSDs in a relative
&gt; way.  It seems (to me) that you can't make a catalog entry which
&gt; overrides "../" to point to a specific place on the classpath.
&gt; 
&gt; For instance:
&gt; WSDL has &lt;xsd:import schemaLocation="schemas/3rdPartySchema.xsd"/&gt;
&gt; We map schemas to classpath:/schemas in a catalog and that works well.
&gt; 
&gt; then, in 3rdPartySchema.xsd there is a: &lt;xsd:import schemaLocation="../
&gt; coreschemas/base.xsd"/&gt;.  There seems no way to catalog "../" to point
&gt; to classpath:/coreschemas...


Hmm...   You should HAVE to do anything with the catalogs in this case.   The 
systemId for 3rdPartySchema.xsd should end up being the full URL for whatever 
"classpath:/schemas/3rdPartySchema.xsd" resolves to. (like 
jar:file://..../myproject.jar!/schemas/3rdPartySchema.xsd)

Thus, the relative path, which would resolve from the systemId, should work 
fine for that.    If it isn't, that would be a bug and should be logged (with 
a testcase  :-)   ).

Dan


&gt; 
&gt; What happens is anytime 3rdPartySchema.xsd makes reference to an
&gt; element from base.xsd, it complains it's an unresolved element (but
&gt; doesn't seem to complain that it can't find base.xsd mind you).
&gt; 
&gt; Craig.
&gt; 
&gt; On 16-Nov-09, at 7:25 AM, Daniel Kulp wrote:
&gt; &gt; This is exactly what the XML catalogs are designed for (and the -
&gt; &gt; catalog flag
&gt; &gt; on wsdl2java).     Basically, they allow URL patterns and such used
&gt; &gt; for
&gt; &gt; imports to be mapped into new URL's where the stuff really lives.
&gt; &gt; Thus, you
&gt; &gt; can have "http://..."  type URL's in the wsdl's/xsd's, but have
&gt; &gt; those remapped
&gt; &gt; into file things or such.
&gt; &gt;
&gt; &gt; Dan
&gt; &gt;
&gt; &gt; On Sat November 14 2009 9:31:43 am Dominik Raymann wrote:
&gt; &gt;&gt; Hi there,
&gt; &gt;&gt;
&gt; &gt;&gt; I use WSDL2JAVAto generate client code from a WSDL. I'd like to
&gt; &gt;&gt; store the
&gt; &gt;&gt; WSDL (and all referenced dependencies) locally so that the stubs
&gt; &gt;&gt; can be
&gt; &gt;&gt; generated offline. However, the WSDL references (imports) other
&gt; &gt;&gt; WSDLs as
&gt; &gt;&gt; well as schema files. These references are absolute URLs.
&gt; &gt;&gt;
&gt; &gt;&gt; Is it possible to map these URLs to local files somehow or do I
&gt; &gt;&gt; have to
&gt; &gt;&gt; edit the WSDL manually and change to URLs so that they point to the
&gt; &gt;&gt; local
&gt; &gt;&gt; files?
&gt; &gt;&gt;
&gt; &gt;&gt; Or is there a tool (wsdl2java itself?) that downloads everything
&gt; &gt;&gt; needed for
&gt; &gt;&gt; codegeneration and changes the references so that they point to the
&gt; &gt;&gt; local
&gt; &gt;&gt; copies of the files?
&gt; &gt;&gt;
&gt; &gt;&gt; Thanks for your answer,
&gt; &gt;&gt;
&gt; &gt;&gt; Dominik
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: WSDL wsaw:Action vs soapAction in MAPs on the response message</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041140.42523.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041140-42523-dkulp@apache-org%3e</id>
<updated>2009-12-04T16:40:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri December 4 2009 11:15:27 am rduhard wrote:
&gt; I think that the following line of code might be the culprit:	(via the
&gt; MAPAggregator interceptor)
&gt; 
&gt; ContextUtils.getActionFromServiceModel(Message, Exception):
&gt; line: 722	action = (String) 
message.get(SoapBindingConstants.SOAP_ACTION);
&gt; 
&gt; When setting up the outgoing headers, it looks to create the Action from
&gt;  the service model.  Oddly, it looks first to find if there is a SOAPAction
&gt;  defined for the Message, and if not moves on to the wsaw:Action field. I
&gt;  would argue that the line looking to the SOAPAction value be removed
&gt;  entirely as it's not an applicable value for a response message.
&gt; 
&gt; Does this sound right? if so I can submit a patch to get it fixed asap.

For the response, yes.  That does sound correct. 

Dan



&gt; 
&gt; Rebecca
&gt; 
&gt; dkulp wrote:
&gt; &gt; Actually, the OTHER problem is that we're even setting a SOAPAction on
&gt; &gt; the response message.   That's really not needed.   Thus, that MAY be the
&gt; &gt; real bug.   If that wasn't set, then it wouldn't find it and thus it
&gt; &gt; would use the
&gt; &gt; Action header.
&gt; &gt;
&gt; &gt; Dan
&gt; &gt;
&gt; &gt; On Thu December 3 2009 2:58:04 pm Daniel Kulp wrote:
&gt; &gt;&gt; On Wed December 2 2009 11:41:45 pm Craig Tataryn wrote:
&gt; &gt;&gt; &gt; Anyone have an inkling as to whether CXF is interpreting the spec
&gt; &gt;&gt; &gt; correctly on this?  Essentially we have an explicit wsaw:Action
&gt; &gt;&gt; &gt; specified on a response message, yet because there is a soapAction set
&gt; &gt;&gt; &gt; in the binding the wsaw:Action is ignored and replaced with the value
&gt; &gt;&gt; &gt; of the soapAction.
&gt; &gt;&gt;
&gt; &gt;&gt; Yea. This does seem backwords.   Checked the spec:
&gt; &gt;&gt;
&gt; &gt;&gt; http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/#actioninwsdl
&gt; &gt;&gt;
&gt; &gt;&gt; "WS-Addressing defines a global attribute, wsaw:Action, that can be used
&gt; &gt;&gt; to
&gt; &gt;&gt; explicitly define the value of the [action] property for messages in a
&gt; &gt;&gt; WSDL
&gt; &gt;&gt; description. The type of the attribute is xs:anyURI and it is used as an
&gt; &gt;&gt; extension on the WSDL input, output and fault elements. A SOAP binding
&gt; &gt;&gt; can
&gt; &gt;&gt; specify SOAPAction values for the input messages of operations. In the
&gt; &gt;&gt;  absence of a wsaw:Action attribute on a WSDL input element where a
&gt; &gt;&gt;  SOAPAction value is specified, the value of the [action] property for
&gt; &gt;&gt; the
&gt; &gt;&gt;  input message is the value of the SOAPAction specified."
&gt; &gt;&gt;
&gt; &gt;&gt; Thus, if that is what's occuring, it's backwords.
&gt; &gt;&gt;
&gt; &gt;&gt; I think the problem stems from :
&gt; &gt;&gt; http://www.w3.org/TR/2006/REC-ws-addr-soap-20060509/
&gt; &gt;&gt; which states that for SOAP 1.1, the SOAPAction and Action header have to
&gt; &gt;&gt; match.  If not, a fault needs to be thrown.    Thus, we grab the
&gt; &gt;&gt;  SOAPAction. However, we should be resetting the SOAPAction to the
&gt; &gt;&gt; Action.
&gt; &gt;&gt;   (although, if you are using SOAP 1.1, I would probably argue that your
&gt; &gt;&gt;  wsdl is then "not correct" and the SOAPAction and Action should be set
&gt; &gt;&gt; to
&gt; &gt;&gt;  the same)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Dan
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; Thanks,
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Craig.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; On Fri, Nov 27, 2009 at 10:54 AM, rduhard &lt;rebecca@duhard.ca&gt; wrote:
&gt; &gt;&gt; &gt; &gt; I'm currently implementing WS-Addressing in my web service and am
a
&gt; &gt;&gt; &gt; &gt; little confused about the way CXF is populating the wsa:Action
&gt; &gt;&gt;
&gt; &gt;&gt; property
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; on the response message.  Our WSDL (provided, not created) defines
&gt; &gt;&gt; &gt; &gt; an input and output message like this with corresponding wsaw:Action
&gt; &gt;&gt; &gt; &gt; attributes defined:
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; &lt;wsdl:portType name="myMessage"&gt;
&gt; &gt;&gt; &gt; &gt; ...
&gt; &gt;&gt; &gt; &gt; &lt;wsdl:input message="messageType"
&gt; &gt;&gt;
&gt; &gt;&gt; wsaw:Action="ns:messageType.version"
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; /&gt; &lt;wsdl:output message="messageType-Response"
&gt; &gt;&gt; &gt; &gt; wsaw:Action="ns:messageType-Response.version" /&gt;
&gt; &gt;&gt; &gt; &gt; ...
&gt; &gt;&gt; &gt; &gt; &lt;/wsdl:portType&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; There is also a soapAction defined in the &lt;wsdl:binding&gt; section:
&gt; &gt;&gt; &gt; &gt; ...
&gt; &gt;&gt; &gt; &gt; &lt;soap:operation soapAction="ns:messageType.version" /&gt;
&gt; &gt;&gt; &gt; &gt; ...
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; From what I understand, the SOAPAction value is used in the HTTP
&gt; &gt;&gt; &gt; &gt; Request Header as information to the receiving server endpoint. But
&gt; &gt;&gt;
&gt; &gt;&gt; on
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; the outbound message, when populating the wsa:Action field in the
&gt; &gt;&gt; &gt; &gt; outgoing SOAP Headers, CXF first checks for the soapAction element
&gt; &gt;&gt;
&gt; &gt;&gt; and
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; if it doesn't find one, it then looks for the wsaw:Action value
&gt; &gt;&gt;
&gt; &gt;&gt; defined
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; on the output message.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; I"m not sure if I'm missing something, but this seems backwards. I'm
&gt; &gt;&gt; &gt; &gt; defining an explicit value for the Action on the response message
&gt; &gt;&gt; &gt; &gt; but it first looks to the soapAction which I don't think should
&gt; &gt;&gt; &gt; &gt; really apply to the outbound message.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; The only way I can get it to select my explicitly defined
&gt; &gt;&gt; &gt; &gt; wsaw:Action value on the output is to remove the soapAction
&gt; &gt;&gt; &gt; &gt; attribute from the
&gt; &gt;&gt;
&gt; &gt;&gt; WSDL
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; (or set it to empty string). However, this isn't an option going
&gt; &gt;&gt; &gt; &gt; forward as we are not the authors of the WSDL.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; Is it possible that CXF has implemented this wrong and has the
&gt; &gt;&gt; &gt; &gt; action look-up backwards?
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; Thanks in advance, any help/ideas/insight is appreciated.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; --
&gt; &gt;&gt; &gt; &gt; View this message in context:
&gt; &gt;&gt;
&gt; &gt;&gt; http://old.nabble.com/WSDL-wsaw%3AAction-vs-soapAction-in-MAPs-on-the-r
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;es ponse-message-tp26545030p26545030.html Sent from the cxf-user
&gt; &gt;&gt;
&gt; &gt;&gt; mailing
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt; list archive at Nabble.com.
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Exception in Soap Dynamic Client</title>
<author><name>=?UTF-8?Q?Walter_Mour=C3=A3o?= &lt;walter.mourao@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c8bf03ded0912040815v6173fb62mb40a2c49df3d0753@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8bf03ded0912040815v6173fb62mb40a2c49df3d0753@mail-gmail-com%3e</id>
<updated>2009-12-04T16:15:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you,

results = client.invoke("ListarBacias");

works fine :-)


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2009/12/4 Daniel Kulp &lt;dkulp@apache.org&gt;

&gt;
&gt; This is probably due to:
&gt;
&gt; results = client.invoke("ListarBacias", (Object[]) null);
&gt;
&gt; What does the ListarBacias operations input message look like?
&gt;
&gt; The probably should be:
&gt;
&gt; results = client.invoke("ListarBacias", new Object[0]);
&gt;
&gt; or:
&gt;
&gt; results = client.invoke("ListarBacias");
&gt;
&gt;
&gt; Dan
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; On Fri December 4 2009 10:52:06 am Walter Mourão wrote:
&gt; &gt; I removed the Xerces dependency and now I've got:
&gt; &gt;
&gt; &gt; Exception in thread "main" java.lang.RuntimeException:
&gt; &gt; java.lang.NullPointerException
&gt; &gt;     at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:28)
&gt; &gt;     at com.wim.ita.testemaven.App.main(App.java:116)
&gt; &gt; Caused by: java.lang.NullPointerException
&gt; &gt;     at java.util.Arrays$ArrayList.&lt;init&gt;(Arrays.java:3369)
&gt; &gt;     at java.util.Arrays.asList(Arrays.java:3355)
&gt; &gt;     at
&gt; &gt;
&gt; org.apache.cxf.message.MessageContentsList.&lt;init&gt;(MessageContentsList.java:
&gt; &gt; 36) at
&gt; &gt;  org.apache.cxf.endpoint.ClientImpl.setParameters(ClientImpl.java:592) at
&gt; &gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454) at
&gt; &gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at
&gt; &gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at
&gt; &gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281) at
&gt; &gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267) at
&gt; &gt;  com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:26)
&gt; &gt;
&gt; &gt; Hints ?
&gt; &gt;
&gt; &gt; Walter Mourão
&gt; &gt; http://waltermourao.com.br
&gt; &gt; http://arcadian.com.br
&gt; &gt; http://oriens.com.br
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; 2009/12/4 Daniel Kulp &lt;dkulp@apache.org&gt;
&gt; &gt;
&gt; &gt; &gt; This is due to an old version of Xerces found on the classpath.  Check
&gt; &gt; &gt; the xerces jars and such to make sure they are recent.  (or remove them
&gt; &gt; &gt; entirely
&gt; &gt; &gt; and use the parsers built into the JDK).
&gt; &gt; &gt;
&gt; &gt; &gt; Dan
&gt; &gt; &gt;
&gt; &gt; &gt; On Fri December 4 2009 6:55:55 am Walter Mourão wrote:
&gt; &gt; &gt; &gt; Hi folks,
&gt; &gt; &gt; &gt; I've got the following exception when executing a remote method
&gt; (XFire
&gt; &gt; &gt; &gt;  1.2.5 based server) :
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Exception in thread "main" java.lang.AbstractMethodError:
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/l
&gt; &gt; &gt;an
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; g/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at
&gt; &gt; &gt; &gt;  org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941)
&gt; at
&gt; &gt; &gt; &gt;  org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799)
&gt; at
&gt; &gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt; &gt; &gt; &gt;     at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt; &gt; &gt;     at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt; &gt; &gt;:2
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; 17) at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
&gt; &gt; &gt;16
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; 1) at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:6
&gt; &gt; &gt;7)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;     at org.apache.cxf.endpoint.ClientImpl.&lt;init&gt;(ClientImpl.java:148)
&gt; &gt; &gt; &gt;     at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt; &gt;Cl
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; ientFactory.java:253) at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt; &gt;Cl
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; ientFactory.java:231) at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt; &gt;Cl
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; ientFactory.java:224) at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt; &gt;Cl
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; ientFactory.java:159) at
&gt; &gt; &gt; &gt;  com.wim.ita.testemaven.App.testeTestaIPFromFCHT(App.java:75) at
&gt; &gt; &gt; &gt;  com.wim.ita.testemaven.App.main(App.java:116)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; The invocation code:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;             final JaxWsDynamicClientFactory dcf =
&gt; &gt; &gt; &gt; JaxWsDynamicClientFactory.newInstance();
&gt; &gt; &gt; &gt;             final Client client = dcf.createClient(new URL("
&gt; &gt; &gt; &gt; http://localhost:8080/ioserver-1.0/services/MMAService?wsdl"));
&gt; &gt; &gt; &gt;             results = client.invoke("ListarBacias", (Object[]) null);
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; The WSDL is attached (and pasted after the message).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Could you please help me ?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Thanks in advance,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Walter Mourão
&gt; &gt; &gt; &gt; http://waltermourao.com.br
&gt; &gt; &gt; &gt; http://arcadian.com.br
&gt; &gt; &gt; &gt; http://oriens.com.br
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; WSDS:
&gt; &gt; &gt; &gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &gt; &gt; &gt; &lt;wsdl:definitions
&gt; &gt; &gt; &gt;  targetNamespace="http://service.webserver.exemplo.ita.br/"
&gt; &gt; &gt; &gt;  xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding"
&gt; xmlns:tns="
&gt; &gt; &gt; &gt;  http://service.webserver.exemplo.ita.br/" xmlns:wsdl="
&gt; &gt; &gt; &gt; http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="
&gt; &gt; &gt; &gt; http://www.w3.org/2001/XMLSchema" xmlns:soap11="
&gt; &gt; &gt; &gt; http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="
&gt; &gt; &gt; &gt; http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="
&gt; &gt; &gt; &gt; http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="
&gt; &gt; &gt; &gt; http://www.w3.org/2003/05/soap-envelope"&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:types&gt;
&gt; &gt; &gt; &gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
&gt; &gt; &gt; &gt; attributeFormDefault="qualified" elementFormDefault="qualified"
&gt; &gt; &gt; &gt; targetNamespace="http://service.webserver.exemplo.ita.br/"&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element name="CriarBacia"&gt;
&gt; &gt; &gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="nome" nillable="true"
&gt; &gt; &gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element name="CriarBaciaResponse"&gt;
&gt; &gt; &gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; &gt; &gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element name="ListarBacias"&gt;
&gt; &gt; &gt; &gt; &lt;xsd:complexType/&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element name="ListarBaciasResponse"&gt;
&gt; &gt; &gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; &gt; &gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &gt; &lt;/xsd:schema&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:types&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:message name="CriarBaciaResponse"&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:CriarBaciaResponse"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:message name="ListarBaciasResponse"&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:ListarBaciasResponse"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:message name="ListarBaciasRequest"&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:ListarBacias"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:message name="CriarBaciaRequest"&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:CriarBacia"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:portType name="MMAServicePortType"&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:input name="CriarBaciaRequest"
&gt; &gt; &gt;
&gt; &gt; &gt; message="tns:CriarBaciaRequest"&gt;
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:input&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:output name="CriarBaciaResponse"
&gt; &gt; &gt; &gt; message="tns:CriarBaciaResponse"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:output&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:input name="ListarBaciasRequest"
&gt; &gt; &gt; &gt; message="tns:ListarBaciasRequest"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:input&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:output name="ListarBaciasResponse"
&gt; &gt; &gt; &gt; message="tns:ListarBaciasResponse"&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:output&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:portType&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:binding name="MMAServiceHttpBinding"
&gt; &gt; &gt;
&gt; &gt; &gt; type="tns:MMAServicePortType"&gt;
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;     &lt;wsdlsoap:binding style="document" transport="
&gt; &gt; &gt; &gt; http://schemas.xmlsoap.org/soap/http"/&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt; &gt; &gt; &gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:input name="CriarBaciaRequest"&gt;
&gt; &gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt; &gt;       &lt;/wsdl:input&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:output name="CriarBaciaResponse"&gt;
&gt; &gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt; &gt;       &lt;/wsdl:output&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt; &gt; &gt; &gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:input name="ListarBaciasRequest"&gt;
&gt; &gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt; &gt;       &lt;/wsdl:input&gt;
&gt; &gt; &gt; &gt;       &lt;wsdl:output name="ListarBaciasResponse"&gt;
&gt; &gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt; &gt;       &lt;/wsdl:output&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:binding&gt;
&gt; &gt; &gt; &gt;   &lt;wsdl:service name="MMAService"&gt;
&gt; &gt; &gt; &gt;     &lt;wsdl:port name="MMAServiceHttpPort"
&gt; &gt; &gt; &gt; binding="tns:MMAServiceHttpBinding"&gt;
&gt; &gt; &gt; &gt;       &lt;wsdlsoap:address location="
&gt; &gt; &gt; &gt; http://localhost:8080/ioserver-1.0/services/MMAService"/&gt;
&gt; &gt; &gt; &gt;     &lt;/wsdl:port&gt;
&gt; &gt; &gt; &gt;   &lt;/wsdl:service&gt;
&gt; &gt; &gt; &gt; &lt;/wsdl:definitions&gt;
&gt; &gt; &gt;
&gt; &gt; &gt; --
&gt; &gt; &gt; Daniel Kulp
&gt; &gt; &gt; dkulp@apache.org
&gt; &gt; &gt; http://www.dankulp.com/blog
&gt; &gt;
&gt;
&gt; --
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: WSDL wsaw:Action vs soapAction in MAPs on the response message</title>
<author><name>rduhard &lt;rebecca@duhard.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c26635939.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635939-post@talk-nabble-com%3e</id>
<updated>2009-12-04T16:15:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I think that the following line of code might be the culprit:	(via the
MAPAggregator interceptor)

ContextUtils.getActionFromServiceModel(Message, Exception):
line: 722	action = (String) message.get(SoapBindingConstants.SOAP_ACTION);

When setting up the outgoing headers, it looks to create the Action from the
service model.  Oddly, it looks first to find if there is a SOAPAction
defined for the Message, and if not moves on to the wsaw:Action field. I
would argue that the line looking to the SOAPAction value be removed
entirely as it's not an applicable value for a response message.   

Does this sound right? if so I can submit a patch to get it fixed asap.

Rebecca


dkulp wrote:
&gt; 
&gt; 
&gt; Actually, the OTHER problem is that we're even setting a SOAPAction on the 
&gt; response message.   That's really not needed.   Thus, that MAY be the real 
&gt; bug.   If that wasn't set, then it wouldn't find it and thus it would use
&gt; the 
&gt; Action header.
&gt; 
&gt; Dan
&gt; 
&gt; 
&gt; On Thu December 3 2009 2:58:04 pm Daniel Kulp wrote:
&gt;&gt; On Wed December 2 2009 11:41:45 pm Craig Tataryn wrote:
&gt;&gt; &gt; Anyone have an inkling as to whether CXF is interpreting the spec
&gt;&gt; &gt; correctly on this?  Essentially we have an explicit wsaw:Action
&gt;&gt; &gt; specified on a response message, yet because there is a soapAction set
&gt;&gt; &gt; in the binding the wsaw:Action is ignored and replaced with the value
&gt;&gt; &gt; of the soapAction.
&gt;&gt; 
&gt;&gt; Yea. This does seem backwords.   Checked the spec:
&gt;&gt; 
&gt;&gt; http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/#actioninwsdl
&gt;&gt; 
&gt;&gt; "WS-Addressing defines a global attribute, wsaw:Action, that can be used
&gt;&gt; to
&gt;&gt; explicitly define the value of the [action] property for messages in a
&gt;&gt; WSDL
&gt;&gt; description. The type of the attribute is xs:anyURI and it is used as an
&gt;&gt; extension on the WSDL input, output and fault elements. A SOAP binding
&gt;&gt; can
&gt;&gt; specify SOAPAction values for the input messages of operations. In the
&gt;&gt;  absence of a wsaw:Action attribute on a WSDL input element where a
&gt;&gt;  SOAPAction value is specified, the value of the [action] property for
&gt;&gt; the
&gt;&gt;  input message is the value of the SOAPAction specified."
&gt;&gt; 
&gt;&gt; Thus, if that is what's occuring, it's backwords.
&gt;&gt; 
&gt;&gt; I think the problem stems from :
&gt;&gt; http://www.w3.org/TR/2006/REC-ws-addr-soap-20060509/
&gt;&gt; which states that for SOAP 1.1, the SOAPAction and Action header have to
&gt;&gt; match.  If not, a fault needs to be thrown.    Thus, we grab the
&gt;&gt;  SOAPAction. However, we should be resetting the SOAPAction to the
&gt;&gt; Action. 
&gt;&gt;   (although, if you are using SOAP 1.1, I would probably argue that your
&gt;&gt;  wsdl is then "not correct" and the SOAPAction and Action should be set
&gt;&gt; to
&gt;&gt;  the same)
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Dan
&gt;&gt; 
&gt;&gt; &gt; Thanks,
&gt;&gt; &gt;
&gt;&gt; &gt; Craig.
&gt;&gt; &gt;
&gt;&gt; &gt; On Fri, Nov 27, 2009 at 10:54 AM, rduhard &lt;rebecca@duhard.ca&gt; wrote:
&gt;&gt; &gt; &gt; I'm currently implementing WS-Addressing in my web service and am a
&gt;&gt; &gt; &gt; little confused about the way CXF is populating the wsa:Action
&gt;&gt; property
&gt;&gt; &gt; &gt; on the response message.  Our WSDL (provided, not created) defines an
&gt;&gt; &gt; &gt; input and output message like this with corresponding wsaw:Action
&gt;&gt; &gt; &gt; attributes defined:
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; &lt;wsdl:portType name="myMessage"&gt;
&gt;&gt; &gt; &gt; ...
&gt;&gt; &gt; &gt; &lt;wsdl:input message="messageType"
&gt;&gt; wsaw:Action="ns:messageType.version"
&gt;&gt; &gt; &gt; /&gt; &lt;wsdl:output message="messageType-Response"
&gt;&gt; &gt; &gt; wsaw:Action="ns:messageType-Response.version" /&gt;
&gt;&gt; &gt; &gt; ...
&gt;&gt; &gt; &gt; &lt;/wsdl:portType&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; There is also a soapAction defined in the &lt;wsdl:binding&gt; section:
&gt;&gt; &gt; &gt; ...
&gt;&gt; &gt; &gt; &lt;soap:operation soapAction="ns:messageType.version" /&gt;
&gt;&gt; &gt; &gt; ...
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; From what I understand, the SOAPAction value is used in the HTTP
&gt;&gt; &gt; &gt; Request Header as information to the receiving server endpoint. But
&gt;&gt; on
&gt;&gt; &gt; &gt; the outbound message, when populating the wsa:Action field in the
&gt;&gt; &gt; &gt; outgoing SOAP Headers, CXF first checks for the soapAction element
&gt;&gt; and
&gt;&gt; &gt; &gt; if it doesn't find one, it then looks for the wsaw:Action value
&gt;&gt; defined
&gt;&gt; &gt; &gt; on the output message.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; I"m not sure if I'm missing something, but this seems backwards. I'm
&gt;&gt; &gt; &gt; defining an explicit value for the Action on the response message but
&gt;&gt; &gt; &gt; it first looks to the soapAction which I don't think should really
&gt;&gt; &gt; &gt; apply to the outbound message.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; The only way I can get it to select my explicitly defined wsaw:Action
&gt;&gt; &gt; &gt; value on the output is to remove the soapAction attribute from the
&gt;&gt; WSDL
&gt;&gt; &gt; &gt; (or set it to empty string). However, this isn't an option going
&gt;&gt; &gt; &gt; forward as we are not the authors of the WSDL.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Is it possible that CXF has implemented this wrong and has the action
&gt;&gt; &gt; &gt; look-up backwards?
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Thanks in advance, any help/ideas/insight is appreciated.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; --
&gt;&gt; &gt; &gt; View this message in context:
&gt;&gt; &gt; &gt;
&gt;&gt; http://old.nabble.com/WSDL-wsaw%3AAction-vs-soapAction-in-MAPs-on-the-r
&gt;&gt; &gt; &gt;es ponse-message-tp26545030p26545030.html Sent from the cxf-user
&gt;&gt; mailing
&gt;&gt; &gt; &gt; list archive at Nabble.com.
&gt;&gt; 
&gt; 
&gt; -- 
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/WSDL-wsaw%3AAction-vs-soapAction-in-MAPs-on-the-response-message-tp26545030p26635939.html
Sent from the cxf-user mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: off topic - jaxb and DTDs</title>
<author><name>Benson Margulies &lt;bimargulies@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c61b5d9410912040815v63e67717ld109351682cc1d21@mail.gmail.com%3e"/>
<id>urn:uuid:%3c61b5d9410912040815v63e67717ld109351682cc1d21@mail-gmail-com%3e</id>
<updated>2009-12-04T16:15:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, I'd try converting the DTD to a schema (there are tools out
there for this purpose), then edit the schema to make sure I liked it,
and then use it with JAXB.

On Fri, Dec 4, 2009 at 11:10 AM, Nathaniel Auvil
&lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; This is a bit off topic but is kind of related...
&gt;
&gt; I am calling a SOAP service with a single operation which passes four
&gt; xml:string parameters.  the fourth being the request XML passed as a
&gt; xml:String.  (I had nothing to do with this ugly interface).  It is
&gt; basically a "do everything" method.  On top of this, the types used in this
&gt; parameter are defined in a DTD!  I got JAXB to generate the classes from the
&gt; DTD (some super long method names LOL) and i can marshall the Objects to a
&gt; String with no problems (yet), however when i unmarshall the response, the
&gt; jaxb objects do not get populated correctly, which is not a surprise since
&gt; the DTD support in JAXB is market as "experimental"
&gt;
&gt; I am wondering if anyone has any ideas as to how i can get the result into
&gt; Objects easily without having to manually parse with JAXP or something.  Or
&gt; even better any tricks to getting JAXB to work with DTD based Classes.
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041112.52091.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041112-52091-dkulp@apache-org%3e</id>
<updated>2009-12-04T16:12:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri December 4 2009 10:59:11 am Nathaniel Auvil wrote:
&gt; is there a best practice to create a service Singleton and have all your
&gt; threads use it rather than create it new all the time?

Well, it's kind of  tradeoff of memory vs performance and only you can answer 
that in your application.

When we create a Service object, we need to download and parse the WSDL.     
The WSDL is held in a weak cache so it COULD still be around next time you 
create a service, but it might not be.   If the service is a singleton, it 
would keep it around forever consuming memory.   If you never need it again, 
that's a waste of memory.

Likewise, the client proxies created from the Service could ALSO be 
singletons.  (caveat: see the FAQ about the thread safety of these: 
http://cxf.apache.org/faq.html)    When we create a proxy, we have to create 
JAXBContexts, wire the wsdl information in, map methods, etc.... which is 
expensive.   However, holding onto the proxy consumes memory due to the jaxb 
context, method maps, etc.....   

In general, my recommendation is that if the service will be used pretty 
often, a singleton is definitely appropriate. The cost of creating new proxies 
per request is pretty high so reusing them is definitely a good thing.    If 
the service is not used often, then don't.

One more caveat:  the Service and Proxy objects in the JAX-WS RI are NOT 
thread safe at all.   Thus, from a portability standpoint, once you do this, 
you are kind of tied to CXF.    The RI folks recommend either synchronizing on 
the objects or use a pool.    Personally, I prefer just making the things 
thread safe if possible.   :-)


Dan





&gt; 
&gt; On Fri, Dec 4, 2009 at 10:55 AM, Benson Margulies 
&lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt; The WSDL reader just reads the stream. There could be some sort of
&gt; &gt; option to have it buffer and log. My idea was to buffer a bit so that
&gt; &gt; we had something to log without paying the cost of a full buffer.
&gt; &gt;
&gt; &gt;
&gt; &gt; On Fri, Dec 4, 2009 at 10:47 AM, Nathaniel Auvil
&gt; &gt;
&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt; &gt; Is there a way to have the log interceptors show the request/response
&gt; &gt; &gt; for the WSDL?
&gt; &gt; &gt;
&gt; &gt; &gt; On Fri, Dec 4, 2009 at 10:22 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt; &gt; &gt;&gt; On Fri December 4 2009 10:13:52 am Benson Margulies wrote:
&gt; &gt; &gt;&gt; &gt; Dan, I still wonder what is hitting him to begin with. I have an
&gt; &gt; &gt;&gt; &gt; idea: capture the first 256 bytes of the returned WSDL and include
&gt; &gt; &gt;&gt; &gt; it in the error. I'm musing about how to make the unit test for
&gt; &gt; &gt;&gt; &gt; this.
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; It's probably the "Cannot find operation...." soap fault that would
&gt; &gt; &gt;&gt; normally
&gt; &gt; &gt;&gt; be generated when you do a get on the service address.
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; Dan
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt;
wrote:
&gt; &gt; &gt;&gt; &gt; &gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; ah...when i added a ?wsdl to the URL it worked.  Why does
CXF
&gt; &gt; &gt;&gt; &gt; &gt;&gt; need
&gt; &gt;
&gt; &gt; to
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; parse the WSDL at runtime?  I have already generated my code.
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; That's pretty much what the JAX-WS spec requires.   There are
&gt; &gt; &gt;&gt; &gt; &gt; things in
&gt; &gt; &gt;&gt; &gt; &gt; the WSDL that are not completely represented in code.   The actual
&gt; &gt; &gt;&gt; &gt; &gt; endpoint address is one of them.   Things like policies are
&gt; &gt; &gt;&gt; &gt; &gt; another.
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; In MOST cases, you can pass null for the wsdl location and then
do
&gt; &gt; &gt;&gt; &gt; &gt; a service.createPort(...) call to create a port with your service
&gt; &gt; &gt;&gt; &gt; &gt; URL and
&gt; &gt; &gt;&gt; &gt; &gt; it will work fine.    For straight soap calls with nothing fancy,
&gt; &gt;
&gt; &gt; the
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; generated code may be enough in that case.
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; Dan
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; CXF is trying to dynamically take the WSDL from your
service,
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; and something is coming back (perhaps an error page)
that is
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; not much like
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you
see?
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client
from
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; WSDL.
&gt; &gt;
&gt; &gt; I
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; followed the web site example and some other examples
i found
&gt; &gt;
&gt; &gt; on
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; the
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; net and my classes seemed to generate fine. As
a side note i
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; am using java version "1.6.0_16"
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;        &lt;plugin&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;executions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;execution&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;configuration&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt; &gt;
&gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                       
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;goals&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/goals&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;/execution&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;/executions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;            &lt;/plugin&gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; However, when i create a new xxxService Object
as in...
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService service = new OaxApiService( url,
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService.SERVICE );
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; i am getting the following exception....
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Failed
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; to create service.
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;a:9 3)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:20
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;5) at
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;
&gt; &gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderIm
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;pl. java:65)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
at
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; faultCode=PARSER_ERROR:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; character
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; 't'
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; (code
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;ava
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;:226)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.ja
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;va: 179)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;a:9 1)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    ... 7 more
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Unexpected
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;'
or "/&gt;"
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;:64 8) at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;:29 65)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.ja
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;va: 2936)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;284 8)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;
&gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:90
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;8) at
&gt; &gt;
&gt; &gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826)
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;
&gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:86
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;8) at
&gt; &gt;
&gt; &gt; org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;ava
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;:217)
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt;:
&gt; &gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    ... 9 more
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; --
&gt; &gt; &gt;&gt; &gt; &gt; Daniel Kulp
&gt; &gt; &gt;&gt; &gt; &gt; dkulp@apache.org
&gt; &gt; &gt;&gt; &gt; &gt; http://www.dankulp.com/blog
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; --
&gt; &gt; &gt;&gt; Daniel Kulp
&gt; &gt; &gt;&gt; dkulp@apache.org
&gt; &gt; &gt;&gt; http://www.dankulp.com/blog
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>off topic - jaxb and DTDs</title>
<author><name>Nathaniel Auvil &lt;nathaniel.auvil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c3c68c5a40912040810u292a1f28pe69d11cc5bd69aca@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3c68c5a40912040810u292a1f28pe69d11cc5bd69aca@mail-gmail-com%3e</id>
<updated>2009-12-04T16:10:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This is a bit off topic but is kind of related...

I am calling a SOAP service with a single operation which passes four
xml:string parameters.  the fourth being the request XML passed as a
xml:String.  (I had nothing to do with this ugly interface).  It is
basically a "do everything" method.  On top of this, the types used in this
parameter are defined in a DTD!  I got JAXB to generate the classes from the
DTD (some super long method names LOL) and i can marshall the Objects to a
String with no problems (yet), however when i unmarshall the response, the
jaxb objects do not get populated correctly, which is not a surprise since
the DTD support in JAXB is market as "experimental"

I am wondering if anyone has any ideas as to how i can get the result into
Objects easily without having to manually parse with JAXP or something.  Or
even better any tricks to getting JAXB to work with DTD based Classes.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Exception in Soap Dynamic Client</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041100.26250.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041100-26250-dkulp@apache-org%3e</id>
<updated>2009-12-04T16:00:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

This is probably due to:

results = client.invoke("ListarBacias", (Object[]) null);

What does the ListarBacias operations input message look like?

The probably should be:

results = client.invoke("ListarBacias", new Object[0]);

or:

results = client.invoke("ListarBacias");


Dan






On Fri December 4 2009 10:52:06 am Walter Mouro wrote:
&gt; I removed the Xerces dependency and now I've got:
&gt; 
&gt; Exception in thread "main" java.lang.RuntimeException:
&gt; java.lang.NullPointerException
&gt;     at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:28)
&gt;     at com.wim.ita.testemaven.App.main(App.java:116)
&gt; Caused by: java.lang.NullPointerException
&gt;     at java.util.Arrays$ArrayList.&lt;init&gt;(Arrays.java:3369)
&gt;     at java.util.Arrays.asList(Arrays.java:3355)
&gt;     at
&gt; org.apache.cxf.message.MessageContentsList.&lt;init&gt;(MessageContentsList.java:
&gt; 36) at
&gt;  org.apache.cxf.endpoint.ClientImpl.setParameters(ClientImpl.java:592) at
&gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454) at
&gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at
&gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at
&gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281) at
&gt;  org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267) at
&gt;  com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:26)
&gt; 
&gt; Hints ?
&gt; 
&gt; Walter Mouro
&gt; http://waltermourao.com.br
&gt; http://arcadian.com.br
&gt; http://oriens.com.br
&gt; 
&gt; 
&gt; 
&gt; 2009/12/4 Daniel Kulp &lt;dkulp@apache.org&gt;
&gt; 
&gt; &gt; This is due to an old version of Xerces found on the classpath.  Check
&gt; &gt; the xerces jars and such to make sure they are recent.  (or remove them
&gt; &gt; entirely
&gt; &gt; and use the parsers built into the JDK).
&gt; &gt;
&gt; &gt; Dan
&gt; &gt;
&gt; &gt; On Fri December 4 2009 6:55:55 am Walter Mouro wrote:
&gt; &gt; &gt; Hi folks,
&gt; &gt; &gt; I've got the following exception when executing a remote method (XFire
&gt; &gt; &gt;  1.2.5 based server) :
&gt; &gt; &gt;
&gt; &gt; &gt; Exception in thread "main" java.lang.AbstractMethodError:
&gt; &gt;
&gt; &gt; org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/l
&gt; &gt;an
&gt; &gt;
&gt; &gt; &gt; g/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at
&gt; &gt; &gt;  org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941) at
&gt; &gt; &gt;  org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799) at
&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt; &gt; &gt;     at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt; &gt;     at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt; &gt;:2
&gt; &gt;
&gt; &gt; &gt; 17) at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
&gt; &gt;16
&gt; &gt;
&gt; &gt; &gt; 1) at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:6
&gt; &gt;7)
&gt; &gt;
&gt; &gt; &gt;     at org.apache.cxf.endpoint.ClientImpl.&lt;init&gt;(ClientImpl.java:148)
&gt; &gt; &gt;     at
&gt; &gt;
&gt; &gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt;Cl
&gt; &gt;
&gt; &gt; &gt; ientFactory.java:253) at
&gt; &gt;
&gt; &gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt;Cl
&gt; &gt;
&gt; &gt; &gt; ientFactory.java:231) at
&gt; &gt;
&gt; &gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt;Cl
&gt; &gt;
&gt; &gt; &gt; ientFactory.java:224) at
&gt; &gt;
&gt; &gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynamic
&gt; &gt;Cl
&gt; &gt;
&gt; &gt; &gt; ientFactory.java:159) at
&gt; &gt; &gt;  com.wim.ita.testemaven.App.testeTestaIPFromFCHT(App.java:75) at
&gt; &gt; &gt;  com.wim.ita.testemaven.App.main(App.java:116)
&gt; &gt; &gt;
&gt; &gt; &gt; The invocation code:
&gt; &gt; &gt;
&gt; &gt; &gt;             final JaxWsDynamicClientFactory dcf =
&gt; &gt; &gt; JaxWsDynamicClientFactory.newInstance();
&gt; &gt; &gt;             final Client client = dcf.createClient(new URL("
&gt; &gt; &gt; http://localhost:8080/ioserver-1.0/services/MMAService?wsdl"));
&gt; &gt; &gt;             results = client.invoke("ListarBacias", (Object[]) null);
&gt; &gt; &gt;
&gt; &gt; &gt; The WSDL is attached (and pasted after the message).
&gt; &gt; &gt;
&gt; &gt; &gt; Could you please help me ?
&gt; &gt; &gt;
&gt; &gt; &gt; Thanks in advance,
&gt; &gt; &gt;
&gt; &gt; &gt; Walter Mouro
&gt; &gt; &gt; http://waltermourao.com.br
&gt; &gt; &gt; http://arcadian.com.br
&gt; &gt; &gt; http://oriens.com.br
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; WSDS:
&gt; &gt; &gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &gt; &gt; &lt;wsdl:definitions
&gt; &gt; &gt;  targetNamespace="http://service.webserver.exemplo.ita.br/"
&gt; &gt; &gt;  xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="
&gt; &gt; &gt;  http://service.webserver.exemplo.ita.br/" xmlns:wsdl="
&gt; &gt; &gt; http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="
&gt; &gt; &gt; http://www.w3.org/2001/XMLSchema" xmlns:soap11="
&gt; &gt; &gt; http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="
&gt; &gt; &gt; http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="
&gt; &gt; &gt; http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="
&gt; &gt; &gt; http://www.w3.org/2003/05/soap-envelope"&gt;
&gt; &gt; &gt;   &lt;wsdl:types&gt;
&gt; &gt; &gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
&gt; &gt; &gt; attributeFormDefault="qualified" elementFormDefault="qualified"
&gt; &gt; &gt; targetNamespace="http://service.webserver.exemplo.ita.br/"&gt;
&gt; &gt; &gt; &lt;xsd:element name="CriarBacia"&gt;
&gt; &gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="nome" nillable="true"
&gt; &gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &lt;xsd:element name="CriarBaciaResponse"&gt;
&gt; &gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; &gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &lt;xsd:element name="ListarBacias"&gt;
&gt; &gt; &gt; &lt;xsd:complexType/&gt;
&gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &lt;xsd:element name="ListarBaciasResponse"&gt;
&gt; &gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; &gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &gt; &lt;/xsd:schema&gt;
&gt; &gt; &gt;   &lt;/wsdl:types&gt;
&gt; &gt; &gt;   &lt;wsdl:message name="CriarBaciaResponse"&gt;
&gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:CriarBaciaResponse"&gt;
&gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt;   &lt;wsdl:message name="ListarBaciasResponse"&gt;
&gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:ListarBaciasResponse"&gt;
&gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt;   &lt;wsdl:message name="ListarBaciasRequest"&gt;
&gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:ListarBacias"&gt;
&gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt;   &lt;wsdl:message name="CriarBaciaRequest"&gt;
&gt; &gt; &gt;     &lt;wsdl:part name="parameters" element="tns:CriarBacia"&gt;
&gt; &gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt; &gt;   &lt;wsdl:portType name="MMAServicePortType"&gt;
&gt; &gt; &gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt; &gt; &gt;       &lt;wsdl:input name="CriarBaciaRequest"
&gt; &gt;
&gt; &gt; message="tns:CriarBaciaRequest"&gt;
&gt; &gt;
&gt; &gt; &gt;     &lt;/wsdl:input&gt;
&gt; &gt; &gt;       &lt;wsdl:output name="CriarBaciaResponse"
&gt; &gt; &gt; message="tns:CriarBaciaResponse"&gt;
&gt; &gt; &gt;     &lt;/wsdl:output&gt;
&gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt; &gt; &gt;       &lt;wsdl:input name="ListarBaciasRequest"
&gt; &gt; &gt; message="tns:ListarBaciasRequest"&gt;
&gt; &gt; &gt;     &lt;/wsdl:input&gt;
&gt; &gt; &gt;       &lt;wsdl:output name="ListarBaciasResponse"
&gt; &gt; &gt; message="tns:ListarBaciasResponse"&gt;
&gt; &gt; &gt;     &lt;/wsdl:output&gt;
&gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt;   &lt;/wsdl:portType&gt;
&gt; &gt; &gt;   &lt;wsdl:binding name="MMAServiceHttpBinding"
&gt; &gt;
&gt; &gt; type="tns:MMAServicePortType"&gt;
&gt; &gt;
&gt; &gt; &gt;     &lt;wsdlsoap:binding style="document" transport="
&gt; &gt; &gt; http://schemas.xmlsoap.org/soap/http"/&gt;
&gt; &gt; &gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt; &gt; &gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt; &gt; &gt;       &lt;wsdl:input name="CriarBaciaRequest"&gt;
&gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt;       &lt;/wsdl:input&gt;
&gt; &gt; &gt;       &lt;wsdl:output name="CriarBaciaResponse"&gt;
&gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt;       &lt;/wsdl:output&gt;
&gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt; &gt; &gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt; &gt; &gt;       &lt;wsdl:input name="ListarBaciasRequest"&gt;
&gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt;       &lt;/wsdl:input&gt;
&gt; &gt; &gt;       &lt;wsdl:output name="ListarBaciasResponse"&gt;
&gt; &gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt; &gt;       &lt;/wsdl:output&gt;
&gt; &gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt; &gt;   &lt;/wsdl:binding&gt;
&gt; &gt; &gt;   &lt;wsdl:service name="MMAService"&gt;
&gt; &gt; &gt;     &lt;wsdl:port name="MMAServiceHttpPort"
&gt; &gt; &gt; binding="tns:MMAServiceHttpBinding"&gt;
&gt; &gt; &gt;       &lt;wsdlsoap:address location="
&gt; &gt; &gt; http://localhost:8080/ioserver-1.0/services/MMAService"/&gt;
&gt; &gt; &gt;     &lt;/wsdl:port&gt;
&gt; &gt; &gt;   &lt;/wsdl:service&gt;
&gt; &gt; &gt; &lt;/wsdl:definitions&gt;
&gt; &gt;
&gt; &gt; --
&gt; &gt; Daniel Kulp
&gt; &gt; dkulp@apache.org
&gt; &gt; http://www.dankulp.com/blog
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Nathaniel Auvil &lt;nathaniel.auvil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c3c68c5a40912040759j5c08cb58q704397b56b24c00@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3c68c5a40912040759j5c08cb58q704397b56b24c00@mail-gmail-com%3e</id>
<updated>2009-12-04T15:59:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
is there a best practice to create a service Singleton and have all your
threads use it rather than create it new all the time?


On Fri, Dec 4, 2009 at 10:55 AM, Benson Margulies &lt;bimargulies@gmail.com&gt;wrote:

&gt; The WSDL reader just reads the stream. There could be some sort of
&gt; option to have it buffer and log. My idea was to buffer a bit so that
&gt; we had something to log without paying the cost of a full buffer.
&gt;
&gt;
&gt; On Fri, Dec 4, 2009 at 10:47 AM, Nathaniel Auvil
&gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt; Is there a way to have the log interceptors show the request/response for
&gt; &gt; the WSDL?
&gt; &gt;
&gt; &gt;
&gt; &gt; On Fri, Dec 4, 2009 at 10:22 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt; &gt;&gt;
&gt; &gt;&gt; On Fri December 4 2009 10:13:52 am Benson Margulies wrote:
&gt; &gt;&gt; &gt; Dan, I still wonder what is hitting him to begin with. I have an idea:
&gt; &gt;&gt; &gt; capture the first 256 bytes of the returned WSDL and include it in the
&gt; &gt;&gt; &gt; error. I'm musing about how to make the unit test for this.
&gt; &gt;&gt;
&gt; &gt;&gt; It's probably the "Cannot find operation...." soap fault that would
&gt; &gt;&gt; normally
&gt; &gt;&gt; be generated when you do a get on the service address.
&gt; &gt;&gt;
&gt; &gt;&gt; Dan
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt; &gt;&gt; &gt; &gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt; &gt;&gt; &gt; &gt;&gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF
need
&gt; to
&gt; &gt;&gt; &gt; &gt;&gt; parse the WSDL at runtime?  I have already generated my code.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; That's pretty much what the JAX-WS spec requires.   There are things
&gt; &gt;&gt; &gt; &gt; in
&gt; &gt;&gt; &gt; &gt; the WSDL that are not completely represented in code.   The actual
&gt; &gt;&gt; &gt; &gt; endpoint address is one of them.   Things like policies are another.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; In MOST cases, you can pass null for the wsdl location and then do
a
&gt; &gt;&gt; &gt; &gt; service.createPort(...) call to create a port with your service URL
&gt; &gt;&gt; &gt; &gt; and
&gt; &gt;&gt; &gt; &gt; it will work fine.    For straight soap calls with nothing fancy,
&gt; the
&gt; &gt;&gt; &gt; &gt; generated code may be enough in that case.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; Dan
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; CXF is trying to dynamically take the WSDL from your service,
and
&gt; &gt;&gt; &gt; &gt;&gt; &gt; something is coming back (perhaps an error page) that is
not much
&gt; &gt;&gt; &gt; &gt;&gt; &gt; like
&gt; &gt;&gt; &gt; &gt;&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client
from WSDL.
&gt; I
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; followed the web site example and some other examples
i found
&gt; on
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; the
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; net and my classes seemed to generate fine. As a side
note i am
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; using java version "1.6.0_16"
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;        &lt;plugin&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;executions&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;execution&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;configuration&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                        &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;goals&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/goals&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;/execution&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;/executions&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;            &lt;/plugin&gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService service = new OaxApiService( url,
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService.SERVICE );
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; i am getting the following exception....
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Failed
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; to create service.
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt;&gt; &gt; &gt;&gt; &gt;a:9 3)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:20
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;5) at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderIm
&gt; &gt;&gt; &gt; &gt;&gt; &gt;pl. java:65)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; faultCode=PARSER_ERROR:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; character
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; 't'
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; (code
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt;&gt; &gt; &gt;&gt; &gt;ava
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;:226)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.ja
&gt; &gt;&gt; &gt; &gt;&gt; &gt;va: 179)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt;&gt; &gt; &gt;&gt; &gt;a:9 1)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    ... 7 more
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; Unexpected
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or
"/&gt;"
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;:64 8) at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java
&gt; &gt;&gt; &gt; &gt;&gt; &gt;:29 65)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.ja
&gt; &gt;&gt; &gt; &gt;&gt; &gt;va: 2936)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:
&gt; &gt;&gt; &gt; &gt;&gt; &gt;284 8)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:90
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;8) at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:86
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;8) at
&gt; org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt;&gt; &gt; &gt;&gt; &gt;ava
&gt; &gt;&gt; &gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; &gt;:217)
&gt; &gt;&gt; &gt; &gt;&gt; &gt;:
&gt; &gt;&gt; &gt; &gt;&gt; &gt; &gt;    ... 9 more
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; --
&gt; &gt;&gt; &gt; &gt; Daniel Kulp
&gt; &gt;&gt; &gt; &gt; dkulp@apache.org
&gt; &gt;&gt; &gt; &gt; http://www.dankulp.com/blog
&gt; &gt;&gt; &gt;
&gt; &gt;&gt;
&gt; &gt;&gt; --
&gt; &gt;&gt; Daniel Kulp
&gt; &gt;&gt; dkulp@apache.org
&gt; &gt;&gt; http://www.dankulp.com/blog
&gt; &gt;
&gt; &gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Benson Margulies &lt;bimargulies@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c61b5d9410912040755m2344d09cx24107504e1c518bf@mail.gmail.com%3e"/>
<id>urn:uuid:%3c61b5d9410912040755m2344d09cx24107504e1c518bf@mail-gmail-com%3e</id>
<updated>2009-12-04T15:55:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The WSDL reader just reads the stream. There could be some sort of
option to have it buffer and log. My idea was to buffer a bit so that
we had something to log without paying the cost of a full buffer.


On Fri, Dec 4, 2009 at 10:47 AM, Nathaniel Auvil
&lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; Is there a way to have the log interceptors show the request/response for
&gt; the WSDL?
&gt;
&gt;
&gt; On Fri, Dec 4, 2009 at 10:22 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt;&gt;
&gt;&gt; On Fri December 4 2009 10:13:52 am Benson Margulies wrote:
&gt;&gt; &gt; Dan, I still wonder what is hitting him to begin with. I have an idea:
&gt;&gt; &gt; capture the first 256 bytes of the returned WSDL and include it in the
&gt;&gt; &gt; error. I'm musing about how to make the unit test for this.
&gt;&gt;
&gt;&gt; It's probably the "Cannot find operation...." soap fault that would
&gt;&gt; normally
&gt;&gt; be generated when you do a get on the service address.
&gt;&gt;
&gt;&gt; Dan
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; &gt; On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt;&gt; &gt; &gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt;&gt; &gt; &gt;&gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF need
to
&gt;&gt; &gt; &gt;&gt; parse the WSDL at runtime?  I have already generated my code.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; That's pretty much what the JAX-WS spec requires.   There are things
&gt;&gt; &gt; &gt; in
&gt;&gt; &gt; &gt; the WSDL that are not completely represented in code.   The actual
&gt;&gt; &gt; &gt; endpoint address is one of them.   Things like policies are another.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; In MOST cases, you can pass null for the wsdl location and then do a
&gt;&gt; &gt; &gt; service.createPort(...) call to create a port with your service URL
&gt;&gt; &gt; &gt; and
&gt;&gt; &gt; &gt; it will work fine.    For straight soap calls with nothing fancy, the
&gt;&gt; &gt; &gt; generated code may be enough in that case.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Dan
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt;&gt; &gt; &gt;&gt; &gt; CXF is trying to dynamically take the WSDL from your service,
and
&gt;&gt; &gt; &gt;&gt; &gt; something is coming back (perhaps an error page) that is not much
&gt;&gt; &gt; &gt;&gt; &gt; like
&gt;&gt; &gt; &gt;&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt;&gt; &gt; &gt;&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client from
WSDL. I
&gt;&gt; &gt; &gt;&gt; &gt; &gt; followed the web site example and some other examples i found
on
&gt;&gt; &gt; &gt;&gt; &gt; &gt; the
&gt;&gt; &gt; &gt;&gt; &gt; &gt; net and my classes seemed to generate fine. As a side note
i am
&gt;&gt; &gt; &gt;&gt; &gt; &gt; using java version "1.6.0_16"
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;        &lt;plugin&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;executions&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;execution&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;configuration&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                                      
 &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;goals&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/goals&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;/execution&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;                &lt;/executions&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;            &lt;/plugin&gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService service = new OaxApiService( url,
&gt;&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService.SERVICE );
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; i am getting the following exception....
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException:
&gt;&gt; &gt; &gt;&gt; &gt; &gt; Failed
&gt;&gt; &gt; &gt;&gt; &gt; &gt; to create service.
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt;&gt; &gt; &gt;&gt; &gt;a:9 3)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:20
&gt;&gt; &gt; &gt;&gt; &gt; &gt;5) at
&gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderIm
&gt;&gt; &gt; &gt;&gt; &gt;pl. java:65)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt;&gt; &gt; &gt;&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; faultCode=PARSER_ERROR:
&gt;&gt; &gt; &gt;&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt;&gt; &gt; &gt;&gt; &gt; &gt; character
&gt;&gt; &gt; &gt;&gt; &gt; &gt; 't'
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; (code
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt;&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt;&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt;&gt; &gt; &gt;&gt; &gt;ava
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;:226)
&gt;&gt; &gt; &gt;&gt; &gt;:
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.ja
&gt;&gt; &gt; &gt;&gt; &gt;va: 179)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt;&gt; &gt; &gt;&gt; &gt;a:9 1)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    ... 7 more
&gt;&gt; &gt; &gt;&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException:
&gt;&gt; &gt; &gt;&gt; &gt; &gt; Unexpected
&gt;&gt; &gt; &gt;&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or "/&gt;"
&gt;&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt;&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java
&gt;&gt; &gt; &gt;&gt; &gt; &gt;:64 8) at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java
&gt;&gt; &gt; &gt;&gt; &gt;:29 65)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.ja
&gt;&gt; &gt; &gt;&gt; &gt;va: 2936)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:
&gt;&gt; &gt; &gt;&gt; &gt;284 8)
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
&gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:90
&gt;&gt; &gt; &gt;&gt; &gt; &gt;8) at
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826)
&gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt;&gt; &gt; &gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:86
&gt;&gt; &gt; &gt;&gt; &gt; &gt;8) at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt;&gt; &gt; &gt;&gt; &gt; &gt; at
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt;&gt; &gt; &gt;&gt; &gt;ava
&gt;&gt; &gt; &gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt; &gt;:217)
&gt;&gt; &gt; &gt;&gt; &gt;:
&gt;&gt; &gt; &gt;&gt; &gt; &gt;    ... 9 more
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; --
&gt;&gt; &gt; &gt; Daniel Kulp
&gt;&gt; &gt; &gt; dkulp@apache.org
&gt;&gt; &gt; &gt; http://www.dankulp.com/blog
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; Daniel Kulp
&gt;&gt; dkulp@apache.org
&gt;&gt; http://www.dankulp.com/blog
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Exception in Soap Dynamic Client</title>
<author><name>=?UTF-8?Q?Walter_Mour=C3=A3o?= &lt;walter.mourao@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c8bf03ded0912040752x5b486bffr7bc66a600d6ed408@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8bf03ded0912040752x5b486bffr7bc66a600d6ed408@mail-gmail-com%3e</id>
<updated>2009-12-04T15:52:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I removed the Xerces dependency and now I've got:

Exception in thread "main" java.lang.RuntimeException:
java.lang.NullPointerException
    at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:28)
    at com.wim.ita.testemaven.App.main(App.java:116)
Caused by: java.lang.NullPointerException
    at java.util.Arrays$ArrayList.&lt;init&gt;(Arrays.java:3369)
    at java.util.Arrays.asList(Arrays.java:3355)
    at
org.apache.cxf.message.MessageContentsList.&lt;init&gt;(MessageContentsList.java:36)
    at org.apache.cxf.endpoint.ClientImpl.setParameters(ClientImpl.java:592)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267)
    at com.wim.ita.testemaven.App.testeBaciasFromIOServer(App.java:26)

Hints ?

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2009/12/4 Daniel Kulp &lt;dkulp@apache.org&gt;

&gt;
&gt; This is due to an old version of Xerces found on the classpath.  Check the
&gt; xerces jars and such to make sure they are recent.  (or remove them
&gt; entirely
&gt; and use the parsers built into the JDK).
&gt;
&gt; Dan
&gt;
&gt;
&gt; On Fri December 4 2009 6:55:55 am Walter Mourão wrote:
&gt; &gt; Hi folks,
&gt; &gt; I've got the following exception when executing a remote method (XFire
&gt; &gt;  1.2.5 based server) :
&gt; &gt;
&gt; &gt; Exception in thread "main" java.lang.AbstractMethodError:
&gt; &gt;
&gt; org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lan
&gt; &gt; g/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at
&gt; &gt;  org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941) at
&gt; &gt;  org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799) at
&gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt; &gt;     at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt;     at
&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:2
&gt; &gt; 17) at
&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:16
&gt; &gt; 1) at
&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:67)
&gt; &gt;     at org.apache.cxf.endpoint.ClientImpl.&lt;init&gt;(ClientImpl.java:148)
&gt; &gt;     at
&gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; &gt; ientFactory.java:253) at
&gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; &gt; ientFactory.java:231) at
&gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; &gt; ientFactory.java:224) at
&gt; &gt;
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; &gt; ientFactory.java:159) at
&gt; &gt;  com.wim.ita.testemaven.App.testeTestaIPFromFCHT(App.java:75) at
&gt; &gt;  com.wim.ita.testemaven.App.main(App.java:116)
&gt; &gt;
&gt; &gt; The invocation code:
&gt; &gt;
&gt; &gt;             final JaxWsDynamicClientFactory dcf =
&gt; &gt; JaxWsDynamicClientFactory.newInstance();
&gt; &gt;             final Client client = dcf.createClient(new URL("
&gt; &gt; http://localhost:8080/ioserver-1.0/services/MMAService?wsdl"));
&gt; &gt;             results = client.invoke("ListarBacias", (Object[]) null);
&gt; &gt;
&gt; &gt; The WSDL is attached (and pasted after the message).
&gt; &gt;
&gt; &gt; Could you please help me ?
&gt; &gt;
&gt; &gt; Thanks in advance,
&gt; &gt;
&gt; &gt; Walter Mourão
&gt; &gt; http://waltermourao.com.br
&gt; &gt; http://arcadian.com.br
&gt; &gt; http://oriens.com.br
&gt; &gt;
&gt; &gt;
&gt; &gt; WSDS:
&gt; &gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &gt; &lt;wsdl:definitions
&gt; &gt;  targetNamespace="http://service.webserver.exemplo.ita.br/"
&gt; &gt;  xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="
&gt; &gt;  http://service.webserver.exemplo.ita.br/" xmlns:wsdl="
&gt; &gt; http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="
&gt; &gt; http://www.w3.org/2001/XMLSchema" xmlns:soap11="
&gt; &gt; http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="
&gt; &gt; http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="
&gt; &gt; http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="
&gt; &gt; http://www.w3.org/2003/05/soap-envelope"&gt;
&gt; &gt;   &lt;wsdl:types&gt;
&gt; &gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
&gt; &gt; attributeFormDefault="qualified" elementFormDefault="qualified"
&gt; &gt; targetNamespace="http://service.webserver.exemplo.ita.br/"&gt;
&gt; &gt; &lt;xsd:element name="CriarBacia"&gt;
&gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="nome" nillable="true"
&gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &lt;xsd:element name="CriarBaciaResponse"&gt;
&gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &lt;xsd:element name="ListarBacias"&gt;
&gt; &gt; &lt;xsd:complexType/&gt;
&gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &lt;xsd:element name="ListarBaciasResponse"&gt;
&gt; &gt; &lt;xsd:complexType&gt;
&gt; &gt; &lt;xsd:sequence&gt;
&gt; &gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; &gt; type="xsd:string"/&gt;
&gt; &gt; &lt;/xsd:sequence&gt;
&gt; &gt; &lt;/xsd:complexType&gt;
&gt; &gt; &lt;/xsd:element&gt;
&gt; &gt; &lt;/xsd:schema&gt;
&gt; &gt;   &lt;/wsdl:types&gt;
&gt; &gt;   &lt;wsdl:message name="CriarBaciaResponse"&gt;
&gt; &gt;     &lt;wsdl:part name="parameters" element="tns:CriarBaciaResponse"&gt;
&gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt;   &lt;wsdl:message name="ListarBaciasResponse"&gt;
&gt; &gt;     &lt;wsdl:part name="parameters" element="tns:ListarBaciasResponse"&gt;
&gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt;   &lt;wsdl:message name="ListarBaciasRequest"&gt;
&gt; &gt;     &lt;wsdl:part name="parameters" element="tns:ListarBacias"&gt;
&gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt;   &lt;wsdl:message name="CriarBaciaRequest"&gt;
&gt; &gt;     &lt;wsdl:part name="parameters" element="tns:CriarBacia"&gt;
&gt; &gt;     &lt;/wsdl:part&gt;
&gt; &gt;   &lt;/wsdl:message&gt;
&gt; &gt;   &lt;wsdl:portType name="MMAServicePortType"&gt;
&gt; &gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt; &gt;       &lt;wsdl:input name="CriarBaciaRequest"
&gt; message="tns:CriarBaciaRequest"&gt;
&gt; &gt;     &lt;/wsdl:input&gt;
&gt; &gt;       &lt;wsdl:output name="CriarBaciaResponse"
&gt; &gt; message="tns:CriarBaciaResponse"&gt;
&gt; &gt;     &lt;/wsdl:output&gt;
&gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt; &gt;       &lt;wsdl:input name="ListarBaciasRequest"
&gt; &gt; message="tns:ListarBaciasRequest"&gt;
&gt; &gt;     &lt;/wsdl:input&gt;
&gt; &gt;       &lt;wsdl:output name="ListarBaciasResponse"
&gt; &gt; message="tns:ListarBaciasResponse"&gt;
&gt; &gt;     &lt;/wsdl:output&gt;
&gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt;   &lt;/wsdl:portType&gt;
&gt; &gt;   &lt;wsdl:binding name="MMAServiceHttpBinding"
&gt; type="tns:MMAServicePortType"&gt;
&gt; &gt;     &lt;wsdlsoap:binding style="document" transport="
&gt; &gt; http://schemas.xmlsoap.org/soap/http"/&gt;
&gt; &gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt; &gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt; &gt;       &lt;wsdl:input name="CriarBaciaRequest"&gt;
&gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt;       &lt;/wsdl:input&gt;
&gt; &gt;       &lt;wsdl:output name="CriarBaciaResponse"&gt;
&gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt;       &lt;/wsdl:output&gt;
&gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt; &gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt; &gt;       &lt;wsdl:input name="ListarBaciasRequest"&gt;
&gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt;       &lt;/wsdl:input&gt;
&gt; &gt;       &lt;wsdl:output name="ListarBaciasResponse"&gt;
&gt; &gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt; &gt;       &lt;/wsdl:output&gt;
&gt; &gt;     &lt;/wsdl:operation&gt;
&gt; &gt;   &lt;/wsdl:binding&gt;
&gt; &gt;   &lt;wsdl:service name="MMAService"&gt;
&gt; &gt;     &lt;wsdl:port name="MMAServiceHttpPort"
&gt; &gt; binding="tns:MMAServiceHttpBinding"&gt;
&gt; &gt;       &lt;wsdlsoap:address location="
&gt; &gt; http://localhost:8080/ioserver-1.0/services/MMAService"/&gt;
&gt; &gt;     &lt;/wsdl:port&gt;
&gt; &gt;   &lt;/wsdl:service&gt;
&gt; &gt; &lt;/wsdl:definitions&gt;
&gt; &gt;
&gt;
&gt; --
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Init Code</title>
<author><name>Wadi Jalil Maluf &lt;wadijm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c4B192F44.70002@gmail.com%3e"/>
<id>urn:uuid:%3c4B192F44-70002@gmail-com%3e</id>
<updated>2009-12-04T15:48:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you very much Pawel!!!!
Paweł Lipka escribió:
&gt; Alternatively, not to tie yourself to JSR-250, you could put your code 
&gt; into a plain 'void initialize() throws Exception' method and use 
&gt; Spring's bean element init-method attribute to specify which method is 
&gt; to be invoked after ur component is instantiated and wired to its 
&gt; dependencies.
&gt;
&gt;
&gt; Daniel Kulp wrote:
&gt;&gt;
&gt;&gt; In a method annotated with @PostConstruct?
&gt;&gt;
&gt;&gt; Dan
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; On Fri December 4 2009 9:45:05 am Wadi Jalil Maluf wrote:
&gt;&gt;&gt; Hi all,
&gt;&gt;&gt;        I'm building a web application with spring and apache cxf. I
&gt;&gt;&gt; would like to know where te best place to put initialization code is.
&gt;&gt;&gt; Thanks in advance,
&gt;&gt;&gt; Regards,
&gt;&gt;&gt; Wadi
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; __________ Información de ESET NOD32 Antivirus, versión de la base de
&gt;&gt;&gt;  firmas de virus 4660 (20091204) __________
&gt;&gt;&gt;
&gt;&gt;&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt;&gt;&gt;
&gt;&gt;&gt; http://www.eset.com
&gt;&gt;&gt;
&gt;&gt;
&gt;
&gt;



__________ Informacin de ESET NOD32 Antivirus, versin de la base de firmas de virus 4660
(20091204) __________

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Nathaniel Auvil &lt;nathaniel.auvil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c3c68c5a40912040747o78d4b748md7cb490613467ae1@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3c68c5a40912040747o78d4b748md7cb490613467ae1@mail-gmail-com%3e</id>
<updated>2009-12-04T15:47:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is there a way to have the log interceptors show the request/response for
the WSDL?


On Fri, Dec 4, 2009 at 10:22 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:

&gt; On Fri December 4 2009 10:13:52 am Benson Margulies wrote:
&gt; &gt; Dan, I still wonder what is hitting him to begin with. I have an idea:
&gt; &gt; capture the first 256 bytes of the returned WSDL and include it in the
&gt; &gt; error. I'm musing about how to make the unit test for this.
&gt;
&gt; It's probably the "Cannot find operation...." soap fault that would
&gt; normally
&gt; be generated when you do a get on the service address.
&gt;
&gt; Dan
&gt;
&gt;
&gt;
&gt; &gt; On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt; &gt; &gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt; &gt; &gt;&gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF need to
&gt; &gt; &gt;&gt; parse the WSDL at runtime?  I have already generated my code.
&gt; &gt; &gt;
&gt; &gt; &gt; That's pretty much what the JAX-WS spec requires.   There are things in
&gt; &gt; &gt; the WSDL that are not completely represented in code.   The actual
&gt; &gt; &gt; endpoint address is one of them.   Things like policies are another.
&gt; &gt; &gt;
&gt; &gt; &gt; In MOST cases, you can pass null for the wsdl location and then do a
&gt; &gt; &gt; service.createPort(...) call to create a port with your service URL and
&gt; &gt; &gt; it will work fine.    For straight soap calls with nothing fancy, the
&gt; &gt; &gt; generated code may be enough in that case.
&gt; &gt; &gt;
&gt; &gt; &gt; Dan
&gt; &gt; &gt;
&gt; &gt; &gt;&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt; &gt; &gt;
&gt; &gt; &gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt; &gt;&gt; &gt; CXF is trying to dynamically take the WSDL from your service, and
&gt; &gt; &gt;&gt; &gt; something is coming back (perhaps an error page) that is not much
&gt; like
&gt; &gt; &gt;&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt; &gt;&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client from WSDL.
I
&gt; &gt; &gt;&gt; &gt; &gt; followed the web site example and some other examples i found
on
&gt; the
&gt; &gt; &gt;&gt; &gt; &gt; net and my classes seemed to generate fine. As a side note i
am
&gt; &gt; &gt;&gt; &gt; &gt; using java version "1.6.0_16"
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;        &lt;plugin&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                &lt;executions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;execution&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;configuration&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;                                        &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;goals&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                        &lt;/goals&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                    &lt;/execution&gt;
&gt; &gt; &gt;&gt; &gt; &gt;                &lt;/executions&gt;
&gt; &gt; &gt;&gt; &gt; &gt;            &lt;/plugin&gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService service = new OaxApiService( url,
&gt; &gt; &gt;&gt; &gt; &gt; OaxApiService.SERVICE );
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; i am getting the following exception....
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException:
&gt; Failed
&gt; &gt; &gt;&gt; &gt; &gt; to create service.
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt; &gt;&gt; &gt;a:9 3)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:20
&gt; &gt; &gt;&gt; &gt; &gt;5) at org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderIm
&gt; &gt; &gt;&gt; &gt;pl. java:65)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt; &gt; &gt;&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt; &gt; &gt;&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; faultCode=PARSER_ERROR:
&gt; &gt; &gt;&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
&gt; &gt; &gt;&gt; &gt; &gt; 't'
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; (code
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt; &gt;&gt; &gt;ava
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;:226)
&gt; &gt; &gt;&gt; &gt;:
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.ja
&gt; &gt; &gt;&gt; &gt;va: 179)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt; &gt;&gt; &gt;a:9 1)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    ... 7 more
&gt; &gt; &gt;&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException:
&gt; Unexpected
&gt; &gt; &gt;&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java
&gt; &gt; &gt;&gt; &gt; &gt;:64 8) at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java
&gt; &gt; &gt;&gt; &gt;:29 65)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.ja
&gt; &gt; &gt;&gt; &gt;va: 2936)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:
&gt; &gt; &gt;&gt; &gt;284 8)
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt; &gt;    at
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:90
&gt; &gt; &gt;&gt; &gt; &gt;8) at
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826)
&gt; &gt; &gt;&gt; &gt; &gt; at
&gt; &gt; &gt;&gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:86
&gt; &gt; &gt;&gt; &gt; &gt;8) at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; at
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt; &gt;&gt; &gt;ava
&gt; &gt; &gt;&gt; &gt;
&gt; &gt; &gt;&gt; &gt;:217)
&gt; &gt; &gt;&gt; &gt;:
&gt; &gt; &gt;&gt; &gt; &gt;    ... 9 more
&gt; &gt; &gt;
&gt; &gt; &gt; --
&gt; &gt; &gt; Daniel Kulp
&gt; &gt; &gt; dkulp@apache.org
&gt; &gt; &gt; http://www.dankulp.com/blog
&gt; &gt;
&gt;
&gt; --
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Init Code</title>
<author><name>Wadi Jalil Maluf &lt;wadijm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c4B192F21.6020702@gmail.com%3e"/>
<id>urn:uuid:%3c4B192F21-6020702@gmail-com%3e</id>
<updated>2009-12-04T15:47:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Edwin, Thanks Daniel!!
Edwin Quita escribi:
&gt; you could also configure this declaratively in your service's impl
&gt; bean declaration:
&gt;
&gt; &lt;bean id="..." class="..." init-method="start" destroy-method="stop" /&gt;
&gt;
&gt; and inside your impl class implement the methods:
&gt;
&gt; public void start() {
&gt;     //init code here..
&gt; }
&gt;
&gt; public void stop() {
&gt;     //shutdown code here...
&gt; }
&gt;
&gt; On Fri, Dec 4, 2009 at 11:05 PM, Pawe Lipka &lt;p.lipka@amg.net.pl&gt; wrote:
&gt;   
&gt;&gt; Alternatively, not to tie yourself to JSR-250, you could put your code into
&gt;&gt; a plain 'void initialize() throws Exception' method and use Spring's bean
&gt;&gt; element init-method attribute to specify which method is to be invoked after
&gt;&gt; ur component is instantiated and wired to its dependencies.
&gt;&gt;
&gt;&gt;
&gt;&gt; Daniel Kulp wrote:
&gt;&gt;     
&gt;&gt;&gt; In a method annotated with @PostConstruct?
&gt;&gt;&gt;
&gt;&gt;&gt; Dan
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Fri December 4 2009 9:45:05 am Wadi Jalil Maluf wrote:
&gt;&gt;&gt;       
&gt;&gt;&gt;&gt; Hi all,
&gt;&gt;&gt;&gt;       I'm building a web application with spring and apache cxf. I
&gt;&gt;&gt;&gt; would like to know where te best place to put initialization code is.
&gt;&gt;&gt;&gt; Thanks in advance,
&gt;&gt;&gt;&gt; Regards,
&gt;&gt;&gt;&gt; Wadi
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; __________ Informacin de ESET NOD32 Antivirus, versin de la base de
&gt;&gt;&gt;&gt;  firmas de virus 4660 (20091204) __________
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; http://www.eset.com
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;         
&gt;&gt; --
&gt;&gt; Pawe Lipka
&gt;&gt; Senior IT Architect
&gt;&gt; AMG.net, A Bull Group Company
&gt;&gt; ul. kowa 29
&gt;&gt; 90-554 d
&gt;&gt; tel.: (+48 42) 634 56 78
&gt;&gt; www.amg.net.pl
&gt;&gt;
&gt;&gt; Tre niniejszej wiadomoci moe by poufna.
&gt;&gt; Jeeli nie jestecie Pastwo jej adresatem, to rozprowadzanie
&gt;&gt; lub wykorzystywanie zawartych tu informacji jest zabronione.
&gt;&gt;
&gt;&gt; This e-mail contains material that is confidential for the sole
&gt;&gt; use of the intended recipient. Any review, reliance or distribution
&gt;&gt; by others or forwarding without express permission is strictly
&gt;&gt; prohibited. If you are not the intended recipient, please contact
&gt;&gt; the sender and delete all copies.
&gt;&gt;
&gt;&gt;     
&gt;
&gt;
&gt;
&gt; __________ Informacin de ESET NOD32 Antivirus, versin de la base de firmas de virus
4660 (20091204) __________
&gt;
&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt;
&gt; http://www.eset.com
&gt;
&gt;
&gt;   



__________ Informacin de ESET NOD32 Antivirus, versin de la base de firmas de virus 4660
(20091204) __________

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: interceptors - message</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041040.23769.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041040-23769-dkulp@apache-org%3e</id>
<updated>2009-12-04T15:40:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

The message object holds onto the exchange which holds onto both the in and 
out messages.   Thus, on the in chain, you can do 
msg.getExchange().getInMessage().get(...);

Alternatively, the Exchange also implements Map.   Thus, store it on the 
Exchange itself. 

Dan


On Thu November 19 2009 9:11:10 am Ernst Oberortner wrote:
&gt; dear all!
&gt; 
&gt; i have a question regarding the data of the message which is transfered
&gt; from the client to the service...
&gt; 
&gt; example:
&gt; i have an interceptor in the client out-chain (doesn't matter yet in
&gt; which phase) which puts some data into the message
&gt; (by using the Message.put method)... now i want to read the data in the
&gt; in-chain of the service host...
&gt; 
&gt; i haven't discovered yet any possibility how to implement this...
&gt; 
&gt; so please... can anybody help me by giving hints, examples, or links?
&gt; 
&gt; many thanks in advance!
&gt; 
&gt; best regards,
&gt; ernst
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Initialization code, where?</title>
<author><name>Edwin Quita &lt;edwin.quita@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c371f1a520912040732rda8884djedc91857fc68967e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c371f1a520912040732rda8884djedc91857fc68967e@mail-gmail-com%3e</id>
<updated>2009-12-04T15:32:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
you could configure this declaratively in your service's impl
bean declaration:

&lt;bean id="serviceImplBean" class="package.YourServiceImpl"
init-method="start" destroy-method="stop" /&gt;

and inside your impl class implement the methods:

public void start() {
   //init code here..
}

public void stop() {
   //shutdown code here...
}

HTH,
kits

On Fri, Dec 4, 2009 at 10:50 PM, Wadi Jalil Maluf &lt;wadijm@gmail.com&gt; wrote:
&gt; Hi all,
&gt;   I dont know where would be convenient and a good practice to put the
&gt; initialization code that access the db with some services on a Apache CXF
&gt; application.
&gt; Any help would be appreciated,
&gt; Regards,
&gt; Wadi
&gt;
&gt;
&gt; __________ Informacin de ESET NOD32 Antivirus, versin de la base de firmas
&gt; de virus 4660 (20091204) __________
&gt;
&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt;
&gt; http://www.eset.com
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Init Code</title>
<author><name>Edwin Quita &lt;edwin.quita@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c371f1a520912040728m22f76ff5o2702320a03e8b7a4@mail.gmail.com%3e"/>
<id>urn:uuid:%3c371f1a520912040728m22f76ff5o2702320a03e8b7a4@mail-gmail-com%3e</id>
<updated>2009-12-04T15:28:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
you could also configure this declaratively in your service's impl
bean declaration:

&lt;bean id="..." class="..." init-method="start" destroy-method="stop" /&gt;

and inside your impl class implement the methods:

public void start() {
    //init code here..
}

public void stop() {
    //shutdown code here...
}

On Fri, Dec 4, 2009 at 11:05 PM, Pawe Lipka &lt;p.lipka@amg.net.pl&gt; wrote:
&gt; Alternatively, not to tie yourself to JSR-250, you could put your code into
&gt; a plain 'void initialize() throws Exception' method and use Spring's bean
&gt; element init-method attribute to specify which method is to be invoked after
&gt; ur component is instantiated and wired to its dependencies.
&gt;
&gt;
&gt; Daniel Kulp wrote:
&gt;&gt;
&gt;&gt; In a method annotated with @PostConstruct?
&gt;&gt;
&gt;&gt; Dan
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; On Fri December 4 2009 9:45:05 am Wadi Jalil Maluf wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; Hi all,
&gt;&gt;&gt;    I'm building a web application with spring and apache cxf. I
&gt;&gt;&gt; would like to know where te best place to put initialization code is.
&gt;&gt;&gt; Thanks in advance,
&gt;&gt;&gt; Regards,
&gt;&gt;&gt; Wadi
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; __________ Informacin de ESET NOD32 Antivirus, versin de la base de
&gt;&gt;&gt; firmas de virus 4660 (20091204) __________
&gt;&gt;&gt;
&gt;&gt;&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt;&gt;&gt;
&gt;&gt;&gt; http://www.eset.com
&gt;&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt; --
&gt; Pawe Lipka
&gt; Senior IT Architect
&gt; AMG.net, A Bull Group Company
&gt; ul. kowa 29
&gt; 90-554 d
&gt; tel.: (+48 42) 634 56 78
&gt; www.amg.net.pl
&gt;
&gt; Tre niniejszej wiadomoci moe by poufna.
&gt; Jeeli nie jestecie Pastwo jej adresatem, to rozprowadzanie
&gt; lub wykorzystywanie zawartych tu informacji jest zabronione.
&gt;
&gt; This e-mail contains material that is confidential for the sole
&gt; use of the intended recipient. Any review, reliance or distribution
&gt; by others or forwarding without express permission is strictly
&gt; prohibited. If you are not the intended recipient, please contact
&gt; the sender and delete all copies.
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041022.54429.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041022-54429-dkulp@apache-org%3e</id>
<updated>2009-12-04T15:22:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri December 4 2009 10:13:52 am Benson Margulies wrote:
&gt; Dan, I still wonder what is hitting him to begin with. I have an idea:
&gt; capture the first 256 bytes of the returned WSDL and include it in the
&gt; error. I'm musing about how to make the unit test for this.

It's probably the "Cannot find operation...." soap fault that would normally 
be generated when you do a get on the service address.

Dan



&gt; On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt; &gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt; &gt;&gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF need to
&gt; &gt;&gt; parse the WSDL at runtime?  I have already generated my code.
&gt; &gt;
&gt; &gt; That's pretty much what the JAX-WS spec requires.   There are things in
&gt; &gt; the WSDL that are not completely represented in code.   The actual
&gt; &gt; endpoint address is one of them.   Things like policies are another.
&gt; &gt;
&gt; &gt; In MOST cases, you can pass null for the wsdl location and then do a
&gt; &gt; service.createPort(...) call to create a port with your service URL and
&gt; &gt; it will work fine.    For straight soap calls with nothing fancy, the
&gt; &gt; generated code may be enough in that case.
&gt; &gt;
&gt; &gt; Dan
&gt; &gt;
&gt; &gt;&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt; &gt;
&gt; &gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt;&gt; &gt; CXF is trying to dynamically take the WSDL from your service, and
&gt; &gt;&gt; &gt; something is coming back (perhaps an error page) that is not much like
&gt; &gt;&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt;&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client from WSDL. I
&gt; &gt;&gt; &gt; &gt; followed the web site example and some other examples i found on the
&gt; &gt;&gt; &gt; &gt; net and my classes seemed to generate fine. As a side note i am
&gt; &gt;&gt; &gt; &gt; using java version "1.6.0_16"
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;        &lt;plugin&gt;
&gt; &gt;&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt; &gt;&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt; &gt;&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt; &gt;&gt; &gt; &gt;                &lt;executions&gt;
&gt; &gt;&gt; &gt; &gt;                    &lt;execution&gt;
&gt; &gt;&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt; &gt;&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt; &gt;&gt; &gt; &gt;                        &lt;configuration&gt;
&gt; &gt;&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt; &gt;&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt; &gt;&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt; &gt;&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;                                        &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt; &gt;&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt; &gt;&gt; &gt; &gt;                        &lt;goals&gt;
&gt; &gt;&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt; &gt;&gt; &gt; &gt;                        &lt;/goals&gt;
&gt; &gt;&gt; &gt; &gt;                    &lt;/execution&gt;
&gt; &gt;&gt; &gt; &gt;                &lt;/executions&gt;
&gt; &gt;&gt; &gt; &gt;            &lt;/plugin&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; OaxApiService service = new OaxApiService( url,
&gt; &gt;&gt; &gt; &gt; OaxApiService.SERVICE );
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; i am getting the following exception....
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException: Failed
&gt; &gt;&gt; &gt; &gt; to create service.
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt;&gt; &gt;a:9 3)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:20
&gt; &gt;&gt; &gt; &gt;5) at org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderIm
&gt; &gt;&gt; &gt;pl. java:65)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt; &gt;&gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt; &gt;&gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt; &gt;&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt; &gt;&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; faultCode=PARSER_ERROR:
&gt; &gt;&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
&gt; &gt;&gt; &gt; &gt; 't'
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; (code
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt;&gt; &gt;ava
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;:226)
&gt; &gt;&gt; &gt;:
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.ja
&gt; &gt;&gt; &gt;va: 179)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.jav
&gt; &gt;&gt; &gt;a:9 1)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    ... 7 more
&gt; &gt;&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt; &gt;&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt;&gt; &gt; &gt;  at [row,col,system-id]:
&gt; &gt;&gt; &gt; &gt; [2,41,"https://server.xxx.com/oasapi/OaxApi"] at
&gt; &gt;&gt; &gt; &gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java
&gt; &gt;&gt; &gt; &gt;:64 8) at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java
&gt; &gt;&gt; &gt;:29 65)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.ja
&gt; &gt;&gt; &gt;va: 2936)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:
&gt; &gt;&gt; &gt;284 8)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;    at
&gt; &gt;&gt; &gt; &gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
&gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:90
&gt; &gt;&gt; &gt; &gt;8) at
&gt; &gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826)
&gt; &gt;&gt; &gt; &gt; at
&gt; &gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:86
&gt; &gt;&gt; &gt; &gt;8) at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755) at
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.j
&gt; &gt;&gt; &gt;ava
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;:217)
&gt; &gt;&gt; &gt;:
&gt; &gt;&gt; &gt; &gt;    ... 9 more
&gt; &gt;
&gt; &gt; --
&gt; &gt; Daniel Kulp
&gt; &gt; dkulp@apache.org
&gt; &gt; http://www.dankulp.com/blog
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Benson Margulies &lt;bimargulies@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c61b5d9410912040713w42e32d89if371601720d638c9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c61b5d9410912040713w42e32d89if371601720d638c9@mail-gmail-com%3e</id>
<updated>2009-12-04T15:13:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dan, I still wonder what is hitting him to begin with. I have an idea:
capture the first 256 bytes of the returned WSDL and include it in the
error. I'm musing about how to make the unit test for this.

On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:
&gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt;&gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF need to parse
&gt;&gt; the WSDL at runtime?  I have already generated my code.
&gt;
&gt; That's pretty much what the JAX-WS spec requires.   There are things in the
&gt; WSDL that are not completely represented in code.   The actual endpoint
&gt; address is one of them.   Things like policies are another.
&gt;
&gt; In MOST cases, you can pass null for the wsdl location and then do a
&gt; service.createPort(...) call to create a port with your service URL and it
&gt; will work fine.    For straight soap calls with nothing fancy, the generated
&gt; code may be enough in that case.
&gt;
&gt; Dan
&gt;
&gt;
&gt;
&gt;
&gt;&gt;
&gt;&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt;&gt; &gt; CXF is trying to dynamically take the WSDL from your service, and
&gt;&gt; &gt; something is coming back (perhaps an error page) that is not much like
&gt;&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt;&gt; &gt;
&gt;&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt;&gt; &gt;
&gt;&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt;&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client from WSDL. I
&gt;&gt; &gt; &gt; followed the web site example and some other examples i found on the
&gt;&gt; &gt; &gt; net and my classes seemed to generate fine. As a side note i am using
&gt;&gt; &gt; &gt; java version "1.6.0_16"
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;        &lt;plugin&gt;
&gt;&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt;&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt;&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt;&gt; &gt; &gt;                &lt;executions&gt;
&gt;&gt; &gt; &gt;                    &lt;execution&gt;
&gt;&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt;&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt;&gt; &gt; &gt;                        &lt;configuration&gt;
&gt;&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt;&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt;&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt;&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;                                        &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt;&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt;&gt; &gt; &gt;                        &lt;goals&gt;
&gt;&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt;&gt; &gt; &gt;                        &lt;/goals&gt;
&gt;&gt; &gt; &gt;                    &lt;/execution&gt;
&gt;&gt; &gt; &gt;                &lt;/executions&gt;
&gt;&gt; &gt; &gt;            &lt;/plugin&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; OaxApiService service = new OaxApiService( url, OaxApiService.SERVICE
&gt;&gt; &gt; &gt; );
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; i am getting the following exception....
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException: Failed to
&gt;&gt; &gt; &gt; create service.
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:9
&gt;&gt; &gt;3)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:205)
&gt;&gt; &gt; &gt;    at org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.
&gt;&gt; &gt;java:65)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt;&gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt;&gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt;&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt;&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt;&gt; &gt;
&gt;&gt; &gt; faultCode=PARSER_ERROR:
&gt;&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 't'
&gt;&gt; &gt;
&gt;&gt; &gt; (code
&gt;&gt; &gt;
&gt;&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt;&gt; &gt; &gt;  at [row,col,system-id]: [2,41,"https://server.xxx.com/oasapi/OaxApi"]
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt;&gt; &gt;:226)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
&gt;&gt; &gt;179)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:9
&gt;&gt; &gt;1)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    ... 7 more
&gt;&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt;&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or "/&gt;"
&gt;&gt; &gt; &gt;  at [row,col,system-id]: [2,41,"https://server.xxx.com/oasapi/OaxApi"]
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:64
&gt;&gt; &gt; &gt;8) at
&gt;&gt; &gt;
&gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:29
&gt;&gt; &gt;65)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:
&gt;&gt; &gt;2936)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:284
&gt;&gt; &gt;8)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at
&gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:908)
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) at
&gt;&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt;&gt; &gt; &gt;    at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt;&gt; &gt; &gt;    at
&gt;&gt; &gt;
&gt;&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt;&gt; &gt;:217)
&gt;&gt; &gt;
&gt;&gt; &gt; &gt;    ... 9 more
&gt;&gt;
&gt;
&gt; --
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Init Code</title>
<author><name>=?UTF-8?B?UGF3ZcWCIExpcGth?= &lt;p.lipka@amg.net.pl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c4B19253C.40807@amg.net.pl%3e"/>
<id>urn:uuid:%3c4B19253C-40807@amg-net-pl%3e</id>
<updated>2009-12-04T15:05:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Alternatively, not to tie yourself to JSR-250, you could put your code 
into a plain 'void initialize() throws Exception' method and use 
Spring's bean element init-method attribute to specify which method is 
to be invoked after ur component is instantiated and wired to its 
dependencies.


Daniel Kulp wrote:
&gt; 
&gt; In a method annotated with @PostConstruct?
&gt; 
&gt; Dan
&gt; 
&gt; 
&gt; 
&gt; On Fri December 4 2009 9:45:05 am Wadi Jalil Maluf wrote:
&gt;&gt; Hi all,
&gt;&gt;        I'm building a web application with spring and apache cxf. I
&gt;&gt; would like to know where te best place to put initialization code is.
&gt;&gt; Thanks in advance,
&gt;&gt; Regards,
&gt;&gt; Wadi
&gt;&gt;
&gt;&gt;
&gt;&gt; __________ Información de ESET NOD32 Antivirus, versión de la base de
&gt;&gt;  firmas de virus 4660 (20091204) __________
&gt;&gt;
&gt;&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt;&gt;
&gt;&gt; http://www.eset.com
&gt;&gt;
&gt; 


-- 
Paweł Lipka
Senior IT Architect
AMG.net, A Bull Group Company
ul. Łąkowa 29
90-554 Łódź
tel.: (+48 42) 634 56 78
www.amg.net.pl

Treść niniejszej wiadomości może być poufna.
Jeżeli nie jesteście Państwo jej adresatem, to rozprowadzanie
lub wykorzystywanie zawartych tu informacji jest zabronione.

This e-mail contains material that is confidential for the sole
use of the intended recipient. Any review, reliance or distribution
by others or forwarding without express permission is strictly
prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: java.lang.VerifyError: Cannot inherit from final class</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912041002.59077.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912041002-59077-dkulp@apache-org%3e</id>
<updated>2009-12-04T15:02:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Not really sure.   Is the javac version appropriate (java 5 or higher?).

I really don't know what would cause it.    Maybe an older version of jaxb in 
the tomcat shared/lib?       Or possibly jaxb is in the endorsed area?   I'm 
really not sure.

Dan


On Fri December 4 2009 6:04:45 am Shahul Hameed wrote:
&gt; Hi Dan
&gt; 
&gt; I am getting this error on our dev environment however my local eclipse
&gt;  works fine :
&gt; 
&gt;  SEVERE org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient
&gt;  Could not compile java files for
&gt;  http://dev-andregws/regWS/services/soap/authenticatedSession.wsdl.
&gt; 
&gt; [ERROR] IOException during exec() of compiler "javac". Check your path
&gt;  environment variable.
&gt; 
&gt; Caused by: javax.xml.bind.JAXBException: "uk.co.and.register.schemas"
&gt;  doesnt contain ObjectFactory.class or jaxb.index
&gt; 
&gt; I did confirm that the javac is on the path
&gt; 
&gt; $which javac
&gt; $/usr/bin/javac
&gt; 
&gt;  echo $PATH
&gt; /usr/bin:/usr/sfw/bin:/usr/local/bin:/export/home/hyperlocal/bin$
&gt; 
&gt; So you can see that /usr/bin is on the path ..
&gt; 
&gt; Another strange thing is  this error occured on my local machine and to fix
&gt;  this I had to create a new Tomcat instance (deleting all temp, work dirs
&gt;  didnt work) and all worked, but I cant do that on the dev or prod
&gt;  environment.
&gt; 
&gt; Any ideas what may be wrong.
&gt; 
&gt; Best Regards
&gt; 
&gt; Shahul Hameed
&gt; 
&gt; &gt; From: dkulp@apache.org
&gt; &gt; To: users@cxf.apache.org
&gt; &gt; Subject: Re: java.lang.VerifyError: Cannot inherit from final class
&gt; &gt; Date: Thu, 3 Dec 2009 10:52:09 -0500
&gt; &gt; CC: shahul@hotmail.co.uk
&gt; &gt;
&gt; &gt; On Thu December 3 2009 4:09:31 am Shahul Hameed wrote:
&gt; &gt; &gt; Hi Dan
&gt; &gt; &gt;
&gt; &gt; &gt; You were right .. I was getting an old version of DynamicClientFactory
&gt; &gt; &gt; from one of the jars GroovyWS-all.jar
&gt; &gt; &gt;
&gt; &gt; &gt; I removed it from the class path and it worked.
&gt; &gt; &gt;
&gt; &gt; &gt; Thanks very much for your help.
&gt; &gt; &gt;
&gt; &gt; &gt; Also do I need to have the same version of CXF (2.1.4) at the cleint
&gt; &gt; &gt; side coz the team which develops the webservices uses 2.1.4
&gt; &gt;
&gt; &gt; You shouldn't.   That's one of the nice things about soap.   Nothing
&gt; &gt; about the software on either end is really exposed on the wire.   :-)
&gt; &gt;
&gt; &gt; Dan
&gt; &gt;
&gt; &gt; &gt; Best Regards
&gt; &gt; &gt;
&gt; &gt; &gt; Shahul Hameed
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; From: dkulp@apache.org
&gt; &gt; &gt; &gt; To: users@cxf.apache.org
&gt; &gt; &gt; &gt; Subject: Re: java.lang.VerifyError: Cannot inherit from final class
&gt; &gt; &gt; &gt; Date: Wed, 2 Dec 2009 15:19:29 -0500
&gt; &gt; &gt; &gt; CC: shahul@hotmail.co.uk
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Check for other versions of:
&gt; &gt; &gt; &gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; The OLD OLD versions of DynamicClientFactory were final.   When the
&gt; &gt; &gt; &gt; JaxWsDynamicClientFactory class was added, the final restriction was
&gt; &gt; &gt; &gt; taken off.   Thus, it kind of sounds like you are getting a new
&gt; &gt; &gt; &gt; JaxWsDynamicClientFactory, but somehow getting an old
&gt; &gt; &gt; &gt; DynamicClientFactory.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; That all said, consider upgrading everything to a newer version of
&gt; &gt; &gt; &gt; CXF. 2.1.7 or 2.2.5.   :-)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Dan
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; On Wed December 2 2009 8:18:57 am Shahul Hameed wrote:
&gt; &gt; &gt; &gt; &gt; Hi
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; I am getting the following exception when my application starts up
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Caused by: java.lang.VerifyError: Cannot inherit from final class
&gt; &gt; &gt; &gt; &gt;         at java.lang.ClassLoader.defineClass1(Native Method)
&gt; &gt; &gt; &gt; &gt;         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
&gt; &gt; &gt; &gt; &gt;12 4) at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; org.apache.catalina.loader.WebappClassLoader.findClassInternal(Weba
&gt; &gt; &gt; &gt; &gt;pp ClassLoader.java:1817)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassL
&gt; &gt; &gt; &gt; &gt;oa der.java:872)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassL
&gt; &gt; &gt; &gt; &gt;oa der.java:1325)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassL
&gt; &gt; &gt; &gt; &gt;oa der.java:1204)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; uk.co.and.commons.services.soap.AbstractSOAPService.afterProperties
&gt; &gt; &gt; &gt; &gt;Se t(AbstractSOAPService.java:231)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; uk.co.and.tin.service.RegistrationService.afterPropertiesSet(Regist
&gt; &gt; &gt; &gt; &gt;ra tionService.java:46)
&gt; &gt; &gt; &gt; &gt;         at
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; org.springframework.beans.factory.support.AbstractAutowireCapableBe
&gt; &gt; &gt; &gt; &gt;an
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1
&gt; &gt; &gt; &gt; &gt;369) at
&gt; &gt; &gt; &gt; &gt; org.springframework.beans.factory.support.AbstractAutowireCapableBe
&gt; &gt; &gt; &gt; &gt;an
&gt; &gt; &gt; &gt; &gt; Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335
&gt; &gt; &gt; &gt; &gt;) ... 39 more
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; AbstractSOAPService.java:231 (where this exception is thrown
&gt; &gt; &gt; &gt; &gt; )contains this line :
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; JaxWsDynamicClientFactory factory =
&gt; &gt; &gt; &gt; &gt;  JaxWsDynamicClientFactory.newInstance();
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; I am using dynamic client to make web service calls ..
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; I
&gt; &gt; &gt; &gt; &gt; have checked if there are any references to the cxf-bundle-2.1.4
&gt; &gt; &gt; &gt; &gt; jar but there is only one and thats in the WEB-INF lib directory.
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Any help would be much appreciated.
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Best Regards
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Shahul Hameed
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Init Code</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912040954.07019.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912040954-07019-dkulp@apache-org%3e</id>
<updated>2009-12-04T14:54:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


In a method annotated with @PostConstruct?

Dan



On Fri December 4 2009 9:45:05 am Wadi Jalil Maluf wrote:
&gt; Hi all,
&gt;        I'm building a web application with spring and apache cxf. I
&gt; would like to know where te best place to put initialization code is.
&gt; Thanks in advance,
&gt; Regards,
&gt; Wadi
&gt; 
&gt; 
&gt; __________ Informacin de ESET NOD32 Antivirus, versin de la base de
&gt;  firmas de virus 4660 (20091204) __________
&gt; 
&gt; ESET NOD32 Antivirus ha comprobado este mensaje.
&gt; 
&gt; http://www.eset.com
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Initialization code, where?</title>
<author><name>Wadi Jalil Maluf &lt;wadijm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c4B1921BA.9000806@gmail.com%3e"/>
<id>urn:uuid:%3c4B1921BA-9000806@gmail-com%3e</id>
<updated>2009-12-04T14:50:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,
      I dont know where would be convenient and a good practice to put 
the initialization code that access the db with some services on a 
Apache CXF application.
Any help would be appreciated,
Regards,
Wadi


__________ Informacin de ESET NOD32 Antivirus, versin de la base de firmas de virus 4660
(20091204) __________

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com




</pre>
</div>
</content>
</entry>
<entry>
<title>Init Code</title>
<author><name>Wadi Jalil Maluf &lt;wadijm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c4B192071.2070203@yahoo.com.ar%3e"/>
<id>urn:uuid:%3c4B192071-2070203@yahoo-com-ar%3e</id>
<updated>2009-12-04T14:45:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,
       I'm building a web application with spring and apache cxf. I 
would like to know where te best place to put initialization code is.
Thanks in advance,
Regards,
Wadi


__________ Informacin de ESET NOD32 Antivirus, versin de la base de firmas de virus 4660
(20091204) __________

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Exception in Soap Dynamic Client</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912040932.42210.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912040932-42210-dkulp@apache-org%3e</id>
<updated>2009-12-04T14:32:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

This is due to an old version of Xerces found on the classpath.  Check the 
xerces jars and such to make sure they are recent.  (or remove them entirely 
and use the parsers built into the JDK).

Dan


On Fri December 4 2009 6:55:55 am Walter Mouro wrote:
&gt; Hi folks,
&gt; I've got the following exception when executing a remote method (XFire
&gt;  1.2.5 based server) :
&gt; 
&gt; Exception in thread "main" java.lang.AbstractMethodError:
&gt; org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lan
&gt; g/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at
&gt;  org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:941) at
&gt;  org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:799) at
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt;     at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt;     at
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:2
&gt; 17) at
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:16
&gt; 1) at
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:67)
&gt;     at org.apache.cxf.endpoint.ClientImpl.&lt;init&gt;(ClientImpl.java:148)
&gt;     at
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; ientFactory.java:253) at
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; ientFactory.java:231) at
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; ientFactory.java:224) at
&gt; org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicCl
&gt; ientFactory.java:159) at
&gt;  com.wim.ita.testemaven.App.testeTestaIPFromFCHT(App.java:75) at
&gt;  com.wim.ita.testemaven.App.main(App.java:116)
&gt; 
&gt; The invocation code:
&gt; 
&gt;             final JaxWsDynamicClientFactory dcf =
&gt; JaxWsDynamicClientFactory.newInstance();
&gt;             final Client client = dcf.createClient(new URL("
&gt; http://localhost:8080/ioserver-1.0/services/MMAService?wsdl"));
&gt;             results = client.invoke("ListarBacias", (Object[]) null);
&gt; 
&gt; The WSDL is attached (and pasted after the message).
&gt; 
&gt; Could you please help me ?
&gt; 
&gt; Thanks in advance,
&gt; 
&gt; Walter Mouro
&gt; http://waltermourao.com.br
&gt; http://arcadian.com.br
&gt; http://oriens.com.br
&gt; 
&gt; 
&gt; WSDS:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;wsdl:definitions
&gt;  targetNamespace="http://service.webserver.exemplo.ita.br/"
&gt;  xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="
&gt;  http://service.webserver.exemplo.ita.br/" xmlns:wsdl="
&gt; http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="
&gt; http://www.w3.org/2001/XMLSchema" xmlns:soap11="
&gt; http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="
&gt; http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="
&gt; http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="
&gt; http://www.w3.org/2003/05/soap-envelope"&gt;
&gt;   &lt;wsdl:types&gt;
&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
&gt; attributeFormDefault="qualified" elementFormDefault="qualified"
&gt; targetNamespace="http://service.webserver.exemplo.ita.br/"&gt;
&gt; &lt;xsd:element name="CriarBacia"&gt;
&gt; &lt;xsd:complexType&gt;
&gt; &lt;xsd:sequence&gt;
&gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="nome" nillable="true"
&gt; type="xsd:string"/&gt;
&gt; &lt;/xsd:sequence&gt;
&gt; &lt;/xsd:complexType&gt;
&gt; &lt;/xsd:element&gt;
&gt; &lt;xsd:element name="CriarBaciaResponse"&gt;
&gt; &lt;xsd:complexType&gt;
&gt; &lt;xsd:sequence&gt;
&gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; type="xsd:string"/&gt;
&gt; &lt;/xsd:sequence&gt;
&gt; &lt;/xsd:complexType&gt;
&gt; &lt;/xsd:element&gt;
&gt; &lt;xsd:element name="ListarBacias"&gt;
&gt; &lt;xsd:complexType/&gt;
&gt; &lt;/xsd:element&gt;
&gt; &lt;xsd:element name="ListarBaciasResponse"&gt;
&gt; &lt;xsd:complexType&gt;
&gt; &lt;xsd:sequence&gt;
&gt; &lt;xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true"
&gt; type="xsd:string"/&gt;
&gt; &lt;/xsd:sequence&gt;
&gt; &lt;/xsd:complexType&gt;
&gt; &lt;/xsd:element&gt;
&gt; &lt;/xsd:schema&gt;
&gt;   &lt;/wsdl:types&gt;
&gt;   &lt;wsdl:message name="CriarBaciaResponse"&gt;
&gt;     &lt;wsdl:part name="parameters" element="tns:CriarBaciaResponse"&gt;
&gt;     &lt;/wsdl:part&gt;
&gt;   &lt;/wsdl:message&gt;
&gt;   &lt;wsdl:message name="ListarBaciasResponse"&gt;
&gt;     &lt;wsdl:part name="parameters" element="tns:ListarBaciasResponse"&gt;
&gt;     &lt;/wsdl:part&gt;
&gt;   &lt;/wsdl:message&gt;
&gt;   &lt;wsdl:message name="ListarBaciasRequest"&gt;
&gt;     &lt;wsdl:part name="parameters" element="tns:ListarBacias"&gt;
&gt;     &lt;/wsdl:part&gt;
&gt;   &lt;/wsdl:message&gt;
&gt;   &lt;wsdl:message name="CriarBaciaRequest"&gt;
&gt;     &lt;wsdl:part name="parameters" element="tns:CriarBacia"&gt;
&gt;     &lt;/wsdl:part&gt;
&gt;   &lt;/wsdl:message&gt;
&gt;   &lt;wsdl:portType name="MMAServicePortType"&gt;
&gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt;       &lt;wsdl:input name="CriarBaciaRequest" message="tns:CriarBaciaRequest"&gt;
&gt;     &lt;/wsdl:input&gt;
&gt;       &lt;wsdl:output name="CriarBaciaResponse"
&gt; message="tns:CriarBaciaResponse"&gt;
&gt;     &lt;/wsdl:output&gt;
&gt;     &lt;/wsdl:operation&gt;
&gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt;       &lt;wsdl:input name="ListarBaciasRequest"
&gt; message="tns:ListarBaciasRequest"&gt;
&gt;     &lt;/wsdl:input&gt;
&gt;       &lt;wsdl:output name="ListarBaciasResponse"
&gt; message="tns:ListarBaciasResponse"&gt;
&gt;     &lt;/wsdl:output&gt;
&gt;     &lt;/wsdl:operation&gt;
&gt;   &lt;/wsdl:portType&gt;
&gt;   &lt;wsdl:binding name="MMAServiceHttpBinding" type="tns:MMAServicePortType"&gt;
&gt;     &lt;wsdlsoap:binding style="document" transport="
&gt; http://schemas.xmlsoap.org/soap/http"/&gt;
&gt;     &lt;wsdl:operation name="CriarBacia"&gt;
&gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt;       &lt;wsdl:input name="CriarBaciaRequest"&gt;
&gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt;       &lt;/wsdl:input&gt;
&gt;       &lt;wsdl:output name="CriarBaciaResponse"&gt;
&gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt;       &lt;/wsdl:output&gt;
&gt;     &lt;/wsdl:operation&gt;
&gt;     &lt;wsdl:operation name="ListarBacias"&gt;
&gt;       &lt;wsdlsoap:operation soapAction=""/&gt;
&gt;       &lt;wsdl:input name="ListarBaciasRequest"&gt;
&gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt;       &lt;/wsdl:input&gt;
&gt;       &lt;wsdl:output name="ListarBaciasResponse"&gt;
&gt;         &lt;wsdlsoap:body use="literal"/&gt;
&gt;       &lt;/wsdl:output&gt;
&gt;     &lt;/wsdl:operation&gt;
&gt;   &lt;/wsdl:binding&gt;
&gt;   &lt;wsdl:service name="MMAService"&gt;
&gt;     &lt;wsdl:port name="MMAServiceHttpPort"
&gt; binding="tns:MMAServiceHttpBinding"&gt;
&gt;       &lt;wsdlsoap:address location="
&gt; http://localhost:8080/ioserver-1.0/services/MMAService"/&gt;
&gt;     &lt;/wsdl:port&gt;
&gt;   &lt;/wsdl:service&gt;
&gt; &lt;/wsdl:definitions&gt;
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Nathaniel Auvil &lt;nathaniel.auvil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c3c68c5a40912040632m794afd9m9f782b023d63eccb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3c68c5a40912040632m794afd9m9f782b023d63eccb@mail-gmail-com%3e</id>
<updated>2009-12-04T14:32:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
thanks for the help. greatly appreciated


On Fri, Dec 4, 2009 at 9:31 AM, Daniel Kulp &lt;dkulp@apache.org&gt; wrote:

&gt; On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt; &gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF need to
&gt; parse
&gt; &gt; the WSDL at runtime?  I have already generated my code.
&gt;
&gt; That's pretty much what the JAX-WS spec requires.   There are things in the
&gt; WSDL that are not completely represented in code.   The actual endpoint
&gt; address is one of them.   Things like policies are another.
&gt;
&gt; In MOST cases, you can pass null for the wsdl location and then do a
&gt; service.createPort(...) call to create a port with your service URL and it
&gt; will work fine.    For straight soap calls with nothing fancy, the
&gt; generated
&gt; code may be enough in that case.
&gt;
&gt; Dan
&gt;
&gt;
&gt;
&gt;
&gt; &gt;
&gt; &gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies
&gt; &lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt; &gt; CXF is trying to dynamically take the WSDL from your service, and
&gt; &gt; &gt; something is coming back (perhaps an error page) that is not much like
&gt; &gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt; &gt; &gt;
&gt; &gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt; &gt; &gt;
&gt; &gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client from WSDL. I
&gt; &gt; &gt; &gt; followed the web site example and some other examples i found on the
&gt; &gt; &gt; &gt; net and my classes seemed to generate fine. As a side note i am using
&gt; &gt; &gt; &gt; java version "1.6.0_16"
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;        &lt;plugin&gt;
&gt; &gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt; &gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt; &gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt; &gt; &gt; &gt;                &lt;executions&gt;
&gt; &gt; &gt; &gt;                    &lt;execution&gt;
&gt; &gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt; &gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt; &gt; &gt; &gt;                        &lt;configuration&gt;
&gt; &gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt; &gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt; &gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt; &gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;                                        &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt; &gt; &gt; &gt;                        &lt;/configuration&gt;
&gt; &gt; &gt; &gt;                        &lt;goals&gt;
&gt; &gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt; &gt; &gt; &gt;                        &lt;/goals&gt;
&gt; &gt; &gt; &gt;                    &lt;/execution&gt;
&gt; &gt; &gt; &gt;                &lt;/executions&gt;
&gt; &gt; &gt; &gt;            &lt;/plugin&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; OaxApiService service = new OaxApiService( url, OaxApiService.SERVICE
&gt; &gt; &gt; &gt; );
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; i am getting the following exception....
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException: Failed
&gt; to
&gt; &gt; &gt; &gt; create service.
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:9
&gt; &gt; &gt;3)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt; &gt;
&gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:205)
&gt; &gt; &gt; &gt;    at org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.
&gt; &gt; &gt;java:65)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt; &gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt; &gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt; &gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt; &gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt; &gt; &gt;
&gt; &gt; &gt; faultCode=PARSER_ERROR:
&gt; &gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
&gt; 't'
&gt; &gt; &gt;
&gt; &gt; &gt; (code
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt; &gt;  at [row,col,system-id]: [2,41,"https://server.xxx.com/oasapi/OaxApi
&gt; "]
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt; &gt; &gt;:226)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
&gt; &gt; &gt;179)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:9
&gt; &gt; &gt;1)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    ... 7 more
&gt; &gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt; &gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt; &gt;  at [row,col,system-id]: [2,41,"https://server.xxx.com/oasapi/OaxApi
&gt; "]
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt; &gt;
&gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:64
&gt; &gt; &gt; &gt;8) at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:29
&gt; &gt; &gt;65)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:
&gt; &gt; &gt;2936)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:284
&gt; &gt; &gt;8)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt; &gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
&gt; at
&gt; &gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:908)
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826)
&gt; at
&gt; &gt; &gt; &gt;
&gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt; &gt; &gt; &gt;    at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt; &gt; &gt;    at
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt; &gt; &gt;:217)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;    ... 9 more
&gt; &gt;
&gt;
&gt; --
&gt; Daniel Kulp
&gt; dkulp@apache.org
&gt; http://www.dankulp.com/blog
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: CXF 2.2.5 SOAP to Java problem</title>
<author><name>Daniel Kulp &lt;dkulp@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cxf-users/200912.mbox/%3c200912040931.03895.dkulp@apache.org%3e"/>
<id>urn:uuid:%3c200912040931-03895-dkulp@apache-org%3e</id>
<updated>2009-12-04T14:31:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri December 4 2009 8:43:25 am Nathaniel Auvil wrote:
&gt; ah...when i added a ?wsdl to the URL it worked.  Why does CXF need to parse
&gt; the WSDL at runtime?  I have already generated my code.

That's pretty much what the JAX-WS spec requires.   There are things in the 
WSDL that are not completely represented in code.   The actual endpoint 
address is one of them.   Things like policies are another.

In MOST cases, you can pass null for the wsdl location and then do a 
service.createPort(...) call to create a port with your service URL and it 
will work fine.    For straight soap calls with nothing fancy, the generated 
code may be enough in that case.

Dan




&gt; 
&gt; On Fri, Dec 4, 2009 at 8:38 AM, Benson Margulies 
&lt;bimargulies@gmail.com&gt;wrote:
&gt; &gt; CXF is trying to dynamically take the WSDL from your service, and
&gt; &gt; something is coming back (perhaps an error page) that is not much like
&gt; &gt; a WSDL. If you manually grab the ?wsdl URL what do you see?
&gt; &gt;
&gt; &gt; On Fri, Dec 4, 2009 at 8:09 AM, Nathaniel Auvil
&gt; &gt;
&gt; &gt; &lt;nathaniel.auvil@gmail.com&gt; wrote:
&gt; &gt; &gt; Hi all.  I am using Maven to generate a SOAP client from WSDL. I
&gt; &gt; &gt; followed the web site example and some other examples i found on the
&gt; &gt; &gt; net and my classes seemed to generate fine. As a side note i am using
&gt; &gt; &gt; java version "1.6.0_16"
&gt; &gt; &gt;
&gt; &gt; &gt;        &lt;plugin&gt;
&gt; &gt; &gt;                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
&gt; &gt; &gt;                &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
&gt; &gt; &gt;                &lt;version&gt;${cxf.version}&lt;/version&gt;
&gt; &gt; &gt;                &lt;executions&gt;
&gt; &gt; &gt;                    &lt;execution&gt;
&gt; &gt; &gt;                        &lt;id&gt;generate-sources&lt;/id&gt;
&gt; &gt; &gt;                        &lt;phase&gt;generate-sources&lt;/phase&gt;
&gt; &gt; &gt;                        &lt;configuration&gt;
&gt; &gt; &gt;                            &lt;client&gt;true&lt;/client&gt;
&gt; &gt; &gt;
&gt; &gt; &gt; &lt;sourceRoot&gt;${project.build.directory}/generated/cxf&lt;/sourceRoot&gt;
&gt; &gt; &gt;                            &lt;wsdlOptions&gt;
&gt; &gt; &gt;                                &lt;wsdlOption&gt;
&gt; &gt; &gt;
&gt; &gt; &gt; &lt;wsdl&gt;${basedir}/src/main/wsdl/oasApi.wsdl&lt;/wsdl&gt;
&gt; &gt; &gt;                                    &lt;extraargs&gt;
&gt; &gt; &gt;
&gt; &gt; &gt;                                        &lt;extraarg&gt;-p&lt;/extraarg&gt;
&gt; &gt; &gt;                                       
&gt; &gt; &gt; &lt;extraarg&gt;com.xxx.soap&lt;/extraarg&gt; &lt;/extraargs&gt;
&gt; &gt; &gt;
&gt; &gt; &gt;                                &lt;/wsdlOption&gt;
&gt; &gt; &gt;
&gt; &gt; &gt;                            &lt;/wsdlOptions&gt;
&gt; &gt; &gt;                        &lt;/configuration&gt;
&gt; &gt; &gt;                        &lt;goals&gt;
&gt; &gt; &gt;                            &lt;goal&gt;wsdl2java&lt;/goal&gt;
&gt; &gt; &gt;                        &lt;/goals&gt;
&gt; &gt; &gt;                    &lt;/execution&gt;
&gt; &gt; &gt;                &lt;/executions&gt;
&gt; &gt; &gt;            &lt;/plugin&gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; However, when i create a new xxxService Object as in...
&gt; &gt; &gt;
&gt; &gt; &gt; OaxApiService service = new OaxApiService( url, OaxApiService.SERVICE
&gt; &gt; &gt; );
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; i am getting the following exception....
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; org.apache.cxf.service.factory.ServiceConstructionException: Failed to
&gt; &gt; &gt; create service.
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:9
&gt; &gt;3)
&gt; &gt;
&gt; &gt; &gt;    at
&gt; &gt; &gt; org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:205)
&gt; &gt; &gt;    at org.apache.cxf.jaxws.ServiceImpl.&lt;init&gt;(ServiceImpl.java:148)
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.
&gt; &gt;java:65)
&gt; &gt;
&gt; &gt; &gt;    at javax.xml.ws.Service.&lt;init&gt;(Service.java:56)
&gt; &gt; &gt;    at com.xxx.soap.OaxApiService.&lt;init&gt;(OaxApiService.java:48)
&gt; &gt; &gt;    at com.xxx.OaxClient.invoke(OaxClient.java:97)
&gt; &gt; &gt;    at com.xxx.oas.OaxClient.main(OaxClient.java:32)
&gt; &gt; &gt; Caused by: javax.wsdl.WSDLException: WSDLException:
&gt; &gt;
&gt; &gt; faultCode=PARSER_ERROR:
&gt; &gt; &gt; com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 't'
&gt; &gt;
&gt; &gt; (code
&gt; &gt;
&gt; &gt; &gt; 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt;  at [row,col,system-id]: [2,41,"https://server.xxx.com/oasapi/OaxApi"]
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt; &gt;:226)
&gt; &gt;
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:
&gt; &gt;179)
&gt; &gt;
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(WSDLServiceFactory.java:9
&gt; &gt;1)
&gt; &gt;
&gt; &gt; &gt;    ... 7 more
&gt; &gt; &gt; Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
&gt; &gt; &gt; character 't' (code 116) excepted space, or '&gt;' or "/&gt;"
&gt; &gt; &gt;  at [row,col,system-id]: [2,41,"https://server.xxx.com/oasapi/OaxApi"]
&gt; &gt; &gt;    at
&gt; &gt; &gt; com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:64
&gt; &gt; &gt;8) at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:29
&gt; &gt;65)
&gt; &gt;
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:
&gt; &gt;2936)
&gt; &gt;
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:284
&gt; &gt;8)
&gt; &gt;
&gt; &gt; &gt;    at
&gt; &gt; &gt; com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at
&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:908)
&gt; &gt; &gt;    at
&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) at
&gt; &gt; &gt; org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:868)
&gt; &gt; &gt;    at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755)
&gt; &gt; &gt;    at
&gt; &gt;
&gt; &gt; org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java
&gt; &gt;:217)
&gt; &gt;
&gt; &gt; &gt;    ... 9 more
&gt; 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog


</pre>
</div>
</content>
</entry>
</feed>
