Hello, 

I am having a problem using the classes generated by WSDL2Java.  My issue stems 
from the use of the <xsd:group ref=""> inside of complex type.  What seems to 
be happening is that even though the group as a whole is nillable the elements 
of the group are not.  Instead of creating a subtype WSDL2Java places the group 
elements along with other elements in the type at the same level which means 
that both elements of the group are required which is not what I want.  I 
understand that WSDL2Java can't simply create a subtype of its own since that 
would generate incorrect XML.  I don't own the wsdl so I'm not able to make 
changes to it like declare the group as a complex type instead of a group.  I 
have attached a sample wsdl and code that shows the problem.  I am using the -W 
option with WSDL2Java and Axis 1.3.  

Thanks.

   

 <<sample.wsdl>>  <<msg.xsd>>  <<SampleTest.java>> 

_________________________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Espanol - Deutsch - Nederlands - Francais - Italiano - Norsk - Svenska: 
www.cardinalhealth.com/legal/email

Attachment: sample.wsdl
Description: sample.wsdl

Attachment: msg.xsd
Description: msg.xsd

Attachment: SampleTest.java
Description: SampleTest.java

Reply via email to