axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "venkatesh chandrasekaran" <deviprasa...@rediffmail.com>
Subject XSD to WSDL Translation
Date Tue, 03 Aug 2004 01:32:51 GMT
<P>
Hi,<BR>
In our xsd, we've an XOR choice.<BR>
<BR>
Following is the snippet of xsd...<BR>
-------------------------------------------------------<BR>
&lt;xs:choice&gt;<BR>
&nbsp; &lt;xs:element ref=&quot;profile:Male&quot;/&gt;<BR>
&nbsp; &lt;xs:element ref=&quot;profile:Female&quot;/&gt;<BR>
&lt;/xs:choice&gt;<BR>
&lt;xs:element ref=&quot;profile:Location&quot; minOccurs=&quot;0&quot;/&gt;<BR>
-------------------------------------------------------<BR>
<BR>
When this gets converted into wsdl we can see the following snippet in wsdl...<BR>
<BR>
wsdl is viewed like below in a browser<BR>
Go to browser<BR>
1) http://localhost:8080/axis(this is where our service is deployed)<BR>
2) Click the view link in the sentence &quot;View the list of deployed Web services &quot;<BR>
3) Click the wsdl link against your service.<BR>
<BR>
WSDL Snippet<BR>
-------------------------------------------------------<BR>
&lt;element name=&quot;Male&quot; nillable=&quot;true&quot; type=&quot;tns3:Sex_Type&quot;
/&gt; <BR>
&lt;element name=&quot;Female&quot; nillable=&quot;true&quot; type=&quot;tns3:Sex_Type&quot;
/&gt;<BR>
&lt;element maxOccurs=&quot;1&quot; minOccurs=&quot;0&quot; name=&quot;Location&quot;
nillable=&quot;true&quot;&nbsp; &nbsp;  type=&quot;tns4:Location_Type&quot;
/&gt;<BR>
-------------------------------------------------------<BR>
<BR>
QUESTION IS :<BR>
Why the choice tag(XOR option) in xsd is not reflected in wsdl?<BR>
Location tag with minouccurs=0 is translated from xsd to wsdl.(Please refer the above xsd
and wsdl snippets)<BR>
<BR>
Expecting your reply<BR>
<BR>
Thanks<BR>
Venkatesh C
</P>


<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG
SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"
BORDER=0 VSPACE=0 HSPACE=0></a>

Mime
View raw message