Hi, In our xsd, we've an XOR choice. Following is the snippet of xsd... ------------------------------------------------------- <xs:choice> <xs:element ref="profile:Male"/> <xs:element ref="profile:Female"/> </xs:choice> <xs:element ref="profile:Location" minOccurs="0"/> -------------------------------------------------------
When this gets converted into wsdl we can see the following snippet in wsdl... wsdl is viewed like below in a browser Go to browser 1) http://localhost:8080/axis(this is where our service is deployed) 2) Click the view link in the sentence "View the list of deployed Web services " 3) Click the wsdl link against your service. WSDL Snippet ------------------------------------------------------- <element name="Male" nillable="true" type="tns3:Sex_Type" /> <element name="Female" nillable="true" type="tns3:Sex_Type" /> <element maxOccurs="1" minOccurs="0" name="Location" nillable="true" type="tns4:Location_Type" /> ------------------------------------------------------- QUESTION IS : Why the choice tag(XOR option) in xsd is not reflected in wsdl? Location tag with minouccurs=0 is translated from xsd to wsdl.(Please refer the above xsd and wsdl snippets) Expecting your reply Thanks Venkatesh C
