users@jax-rpc.java.net

Re: WSDL with XSD import: Generated Code ...

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Mon, 14 Nov 2005 10:43:15 -0800

Yadav, Sharad (Cognizant) wrote:

> Hi,
>
> We are working on a very typical WSDL. It declares a bunch of
> operations & messages. The messages have ELEMENTS that actually been
> defined in XSD that have been imoprted in the WSDL (I do not have a
> ready WSDL that I can publish right now).
>
> Can WSCOMPILE generate Java Objects for the schema ELEMENTS that are
> message parts? If we use this model, then can the service
> implementation accept a schema-derived Java Object instead of
> receiving SOAP fragments? Some of the examples with JWSDP confirm
> this, but unfortunately I have been stuck with a WSCOMPILE error and
> have been unable to generate code from a WSDL.

Yes, JAX-RPC will map the message part Elements to an appropriate Java
type according to the JAX-RPC mapping rules. If a
standard JAX-RPC mapping does not exist, then you will get a SOAPElement
which is basically a DOM node.

>
>
> Shayad__
>
>
> This e-mail and any files transmitted with it are for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information.
> If you are not the intended recipient, please contact the sender by
> reply e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding,
> printing or copying of this email or any action taken in reliance on
> this e-mail is strictly
> prohibited and may be unlawful.
>
> Visit us at http://www.cognizant.com
>

-- 
 - Doug