cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] Commented: (CXF-1356) Problem with unmarschalling parameters
Date Mon, 07 Jan 2008 15:11:34 GMT


Daniel Kulp commented on CXF-1356:

If you use the ClientProxyFactoryBean without using a wsdl to define the namespaces, it follows
the JAX-WS rules to generate the namespaces, and that means adding the trailing "/".   That
is the only real difference in the messages: the namespace is different due to the trailing

There are a couple ways to work around that:

1) Use the wsdl - call factory.setWsdlLocation(.....) to the location of the wsdl (you can
use the ?wsdl url from the service).  Unfortunately, there are bugs with this with 2.0.3 (should
be fixed in 2.0.4) where this doesn't always work.   :-(     You can use the JaxWsProxyFactoryBean
where the wsdl use should work.

2) Add a service configuration that maps the namespace differently.   Fortunately, we have
one.  The AegisServiceConfiguration maps to namespaces without the trailing slash.  Thus,
you can probably do something like:
factory.getServiceFactory().getConfigurations().add(0, new AegisServiceConfiguration());

> Problem with unmarschalling parameters
> --------------------------------------
>                 Key: CXF-1356
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0.3
>         Environment: Tomcat 5.5.23, Spring 2.1-m2, CXF 2.0.3, jaxb-impl 2.0.5
>            Reporter: Martin Varecha
>         Attachments: AddNumbers.wsdl
> I tried to run sample application "fromwsdl" from jwsdp-2.0 using CXF. Classes are generated
using wsdl2java tool. 
> Service is running correctly, but something is wrong with unmarschalling parameters from
request message.
> Both parameters of method "addNumbers" are always 0.
> Message looks like this:
> <soap:Envelope xmlns:soap="">
>   <soap:Body>
>    <ns1:addNumbers xmlns:ns1="">
>      <arg0 xmlns="">1</arg0>
>      <arg1 xmlns="">2</arg1>
>    </ns1:addNumbers>
>   </soap:Body>
> </soap:Envelope>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message