You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Антон Щепелин <as...@gmail.com> on 2011/10/16 15:01:54 UTC
Wsdl2Java. Wrapper style mapping bug?
Hi everyone,
I use Wsdl2Java (cxf-2.4.3) to create Java classes from wsdl (wsdl file is
attached).
I have 2 operations which actually has the same structure and differs only
by the names.
In the results : for one operation it generates wrapped style class for
another - unwrapped.
I tried to use option in the wsdl:
<jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
<jaxws:enableWrapperStyle>...</jaxws:enableWrapperStyle>
</jaxws:bindings>
but it doesn't help.
Why they differs? I want to have both in non-wrapper style...
Is it a bug or I misunderstand something?
Thank you!
Anton
Re: Wsdl2Java. Wrapper style mapping bug?
Posted by Daniel Kulp <dk...@apache.org>.
Well, the Coaches2Names operation doesn't meet the requirements for
unwrapping. The name of the request element must match the operation name
(it doesn't, it's "Coaches2") and the response should be the operation name +
"Response". That is why it's not unwrapping.
Dan
On Sunday, October 16, 2011 7:01:54 PM Антон Щепелин wrote:
> Hi everyone,
>
> I use Wsdl2Java (cxf-2.4.3) to create Java classes from wsdl (wsdl file is
> attached).
> I have 2 operations which actually has the same structure and differs only
> by the names.
> In the results : for one operation it generates wrapped style class for
> another - unwrapped.
> I tried to use option in the wsdl:
> <jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
> <jaxws:enableWrapperStyle>...</jaxws:enableWrapperStyle>
> </jaxws:bindings>
> but it doesn't help.
>
> Why they differs? I want to have both in non-wrapper style...
> Is it a bug or I misunderstand something?
>
> Thank you!
>
> Anton
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com