users@jax-rpc.java.net

RE: Generation with XSD:ANY

From: Dahlen Jr, Shawn M <shawn.m.dahlen.jr_at_lmco.com>
Date: Mon, 29 Nov 2004 12:29:01 -0500

Unfortunately that does not seem to work as well :(

-----Original Message-----
From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
Sent: Monday, November 29, 2004 12:26 PM
To: users_at_jax-rpc.dev.java.net
Subject: Re: Generation with XSD:ANY

Try adding the -f:strict option.

Dahlen Jr, Shawn M wrote:

> Hello -
>
> I am attempting to create an implementation of a web service in which
> a particular operation is defined as follows:
>
> <xs:element name="getAllResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:any
> namespace="http://iss.lmco.com/schema/action-item-summary"
> maxOccurs="1"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
>
>
><message name="getAllInput"/>
>
><message name="getAllOutput">
>
> <part name="result" element="service:getAllResponse"/>
>
></message>
>
>
>
><portType name="actionItemPort">
>
> <operation name="getAll">
>
> <input message="service:getAllInput"/>
>
> <output message="service:getAllOutput"/>
>
> </operation>
>
></portType>
>
>
>
> According the JAX-RPC 1.1 specification, I should have the following
> interface created:
>
> public interface ActionItemPort extends Remote
>
> {
> GetAllResponse getAll() throws RemoteException;
> }
>
> And the GetAllResponse bean should have a _any property of type
> SOAPElement.
>
> However, when I run WSCOMPILE on the given WSDL definition, I instead
> recieve the following interface:
>
> public interface ActionItemPort extends Remote
>
> {
> SOAPElement getAll() throws RemoteException;
> }
>
> For some reason, wscompile unwraps my GetAllResponse bean if the only
> element within it is of type XSD:ANY. I have the WSI feature turned
> on, and explicitly say donotunwrap. I am using JWSDP version 1.4.
>
>
> Is this a bug in wscompile? I looked around but did not see it
> mentioned anywhere. How can I overcome this issue, without
> hand-editing the generated interfaces?
>
> I appreciate any help you can afford.
>
> P.S. I have also tried not using anonymous types for the
> getAllResponse element, but that did not seem to help either.
>
>
>
>
>
> Thank You,
>
>
> Shawn Dahlen
>
> Lockheed Martin
>

---------------------------------------------------------------------
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