On Aug 13, 2012, at 5:52 AM, andrewv <[email protected]> wrote:

> Hi,
> 
> I am using CXF 2.6.1 via the maven plugins.
> 
> I am finding that in the case of a Document/Literal/Wrapped JAX-WS, the
> annotation:
> 
> @WebResult(partName="somePartName")
> 
> makes no differentce to the generated wsdl. I was expecting this to have
> the effect:

With Doc/Lit/Wrapped, the WebResult attributes would be used for creating the 
<element> inside the wrapper complexType/sequence.  They have nothing to do 
with the parts in the wsdl message.   To control that, you would NEED to move 
to JAX-WS 2.2 and use the partName attribute on the @ResponseWrapper 
annotation.  Unfortunately, with JAX-WS 2.1, there is no way to control it.

Dan



> 
> ...
> <wsdl:message name="SomeResponse">
>  <wsdl:part name="somePartName" ... >
>  </wsdl:part>
> </wsdl:message>
> ...
> 
> but instead it generates:
> 
> ...
> <wsdl:message name="SomeResponse">
>  <wsdl:part name="parameters" ... >
>  </wsdl:part>
> </wsdl:message>
> ...
> 
> I also find that no @WebResult( ... partName="somePartName" ...)
> annotation change is generated in the server SEI stub for the wsdl2java 
> goal if the wsdl contains:
> 
> ...
> <wsdl:message name="SomeResponse">
>  <wsdl:part name="somePartName" ... >
>  </wsdl:part>
> </wsdl:message>
> ...
> 
> I am wanting to be able to control the "somePartName" value, to simulate
> the same wsdl, as is issued by an existing JAX-RPC web service.
> 
> Can someone tell me if the wsdl generation or my understanding is
> incorrect ?
> 
> Thanks
> Andrew
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Seeking-clarification-of-JAX-WS-behaviour-under-CXF-2-6-1-for-WebResult-partName-attribute-tp5712381.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to