users@jax-rpc.java.net

Re: Internal wscompile error from custom WSDL

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Wed, 04 May 2005 13:59:36 -0700

Ryan,
See Anne's response. That should answer your question.

Ryan LeCompte wrote:

>Doug,
>
>Thanks for providing the sample WSDL. I'll definitely try it out shortly. By
>the way, is there a rule that should be followed for the output message so
>that the return type can be Item[] instead of "Items"? Does it also need to
>be named in some particular fashion like the input message?
>
>Thanks,
>Ryan
>
>
>-----Original Message-----
>From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
>Sent: Wednesday, May 04, 2005 4:10 PM
>To: users_at_jax-rpc.dev.java.net
>Subject: Re: Internal wscompile error from custom WSDL
>
>Ryan,
>If you follow the rules for wrapper style, then in document/literal
>JAXRPC will unwrap the outer element and use
>its subelements as the parameters. To meet wrapped style you must:
>
>1) input and output messages must have 1 part
>2) the input message part must have a element which names is named after
>the operation
>3) the elements refered to by the input and output message parts must be
>a complex type defined
>using the zxs:sequence compositor and containing only element declarations.
>
>I've attached a modified WSDL that should work.
>
><>
>Ryan LeCompte wrote:
>
>
>
>>Alessio,
>>
>>Thank you for pointing me in the right direction. It looks like the only
>>solution is to create a new complex type that has all of the "parameters"
>>that I need. Then the operation just takes a single argument of that type
>>with all of the values that I would otherwise have as separate parameters
>>
>>
>to
>
>
>>the method.
>>
>>Thanks,
>>Ryan
>>
>>-----Original Message-----
>>From: Alessio Cervellin [mailto:alessio.cervellin_at_sun-cs-italy.com]
>>Sent: Wednesday, May 04, 2005 2:28 PM
>>To: users_at_jax-rpc.dev.java.net
>>Subject: Re: Internal wscompile error from custom WSDL
>>
>>Ryan LeCompte wrote:
>>
>>
>>
>>
>>
>>>Hello all,
>>>[CUT]
>>>Note that I want the generated methods to use Item[] for method
>>>arguments and not the generated "Items" object. The following WSDL file
>>>illustrates the problem. If you take out the "param_two" from the
>>>message "TestWebService_handleItems" then wscompile generates the proper
>>>artifacts. However, if you add an extra parameter ("part_two") as the
>>>WSDL is currently written, then wscompile outputs the following error:
>>>
>>>
>>>
>>>
>>If you are using doc/literal then the input message can have only one part.
>>For further info look this thread:
>>https://jax-rpc.dev.java.net/servlets/ReadMsg?listName=users&msgNo=2755
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>