axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "venkatesh chandrasekaran" <deviprasa...@rediffmail.com>
Subject SOAP Response xml generated by AXIS
Date Thu, 12 Aug 2004 01:06:47 GMT
<P>
Hi,<BR>
We are facing a problem in the SOAP response xml generated using Axis1.1.<BR>
<BR>
In one of the Web Service applications, in the SOAP Response xml we have an xs:choice element
defined. When the SOAP response xml is generated by AXIS, any choice element that is not populated
an additional tag is generated with &quot;xsi:nil=true&quot;. For a choice element
defined as shown below and only firstElement populated.&nbsp; &nbsp; <BR>
<BR>
&nbsp; &nbsp; &lt;xs:complexType name=&quot;Message_Choice&quot;&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xs:choice&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xs:element
ref=&quot;firstElement&quot;/&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;xs:element
ref=&quot;secondElement&quot;/&gt;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/xs:choice&gt;&nbsp;
&nbsp; <BR>
&nbsp; &nbsp; &lt;/xs:complexType&gt;<BR>
<BR>
The SOAP response xml contains an additional tag <BR>
<BR>
&lt;ns1:secondElement xsi:nil=&quot;true&quot;/&gt; <BR>
<BR>
How to remove the addional tag from the SOAP Response xml without modifying the xsd.<BR>
<BR>
<BR>
Thanks &amp; Regards<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