You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by venkatesh chandrasekaran <de...@rediffmail.com> on 2004/08/12 03:06:38 UTC

SOAP Response xml generated by AXIS

Hi,
We are facing a problem in the SOAP response xml generated using Axis1.1.

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 "xsi:nil=true". For a choice element defined as shown below and only firstElement populated.    

    <xs:complexType name="Message_Choice">
          <xs:choice>
              <xs:element ref="firstElement"/>
              <xs:element ref="secondElement"/>
          </xs:choice>    
    </xs:complexType>

The SOAP response xml contains an additional tag 

<ns1:secondElement xsi:nil="true"/> 

How to remove the addional tag from the SOAP Response xml without modifying the xsd.


Thanks & Regards
Venkatesh C