You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pe...@martindale.com on 2005/11/29 22:21:00 UTC

Question concerning criteria of wsdl document for "wrapped" styl e

Hi,
 
Based on the source I viewed, the criteria for considering a wsdl file(s) to
be "wrapped" is
"
  + *    Special case of DOCLIT where there is only one parameter
  + *    and it has the same qname as the operation.  In
  + *    such cases, there is no actual type with the name...the
  + *    elements are treated as parameters to the operation
"
 
I'm trying to get wsdl2Java to generate "wrapped" and keep getting
"document".  I'm wondering if there are any other criteria I should look
for(correct) in my wsdl,
in order to produce this type. I'm coding the type="document" in the main
.wsdl file, and unfortunately the resulting .java files and .wsdd are not
converting to "wrapped".  Or is there a place in the source where I can
determine this information without being completely abstracted;-)
 
Thanks for your time!
Peter A

Re: Question concerning criteria of wsdl document for "wrapped" styl e

Posted by Dies Koper <di...@jp.fujitsu.com>.
Hello Peter,

Document style operations can use the regular mapping or the "wrapper"
style. See section 6.4.1 of the JAX-RPC 1.1 specification (and the
example in 6.4.3) for details.

Even if you generate a WSDL with "wrapped" style operations, the WSDL
file will still say "document". IIRC, the WSDD does say whether Axis
identified an operation as being wrapped or not.

Please check whether your WSDL follows the criteria listed in the spec.
If you think it does post your WSDL, maybe someone can pinpoint the problem.

Regards,
Dies

peter.adelmann@martindale.com wrote:
> Hi,
>  
> Based on the source I viewed, the criteria for considering a wsdl file(s) to
> be "wrapped" is
> "
>   + *    Special case of DOCLIT where there is only one parameter
>   + *    and it has the same qname as the operation.  In
>   + *    such cases, there is no actual type with the name...the
>   + *    elements are treated as parameters to the operation
> "
>  
> I'm trying to get wsdl2Java to generate "wrapped" and keep getting
> "document".  I'm wondering if there are any other criteria I should look
> for(correct) in my wsdl,
> in order to produce this type. I'm coding the type="document" in the main
> .wsdl file, and unfortunately the resulting .java files and .wsdd are not
> converting to "wrapped".  Or is there a place in the source where I can
> determine this information without being completely abstracted;-)
>  
> Thanks for your time!
> Peter A
>