Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[Axis2] WSDL2Java seems to ignore xsd:any element

843833Jun 5 2006
Hi,

Since I need to have some kind of extensibility in a web service i'm currently defining, I decided to play with the Axis2 userguide sample and tried to change the original WSDL so that the "SOAPStruct" message type would include an xsd:any element :
<complexType name="SOAPStruct">
<all>
<element type="float" name="varFloat" />
<element type="int" name="varInt" />
<element type="string" name="varString" />
<any maxOccurs="1"/>
</all>
</complexType>
When I run WSDL2Java, the xsd:any element isn't mapped anywhere in the generated SOAPStruct.java, whereas the other are. I also tried just the following :
<complexType name="SOAPStruct">
<sequence>
<any/>
</sequence>
</complexType>
And then I've got barely nothing in the SOAPStruct.java (except the declaration of the Factory class)

Could someone please help me with this ? I'm sure I made some kind of stupid error since using xsd:any shouldn't be really hard, I guess.
I'm using Axis2 1.0.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2006
Added on Jun 5 2006
0 comments
260 views