I have my response XSD as:

 

      <element name="Info">

            <complexType>

                  <sequence>

                        <element name="productID" type="string"
minOccurs="1" maxOccurs="1"/>

                        <element name="requestID" type="string"
minOccurs="0" maxOccurs="1"/>

                        <element ref="faults:GenericFaultType"
minOccurs="0" maxOccurs="1" />

                  </sequence>

            </complexType>

      </element>

 

In certain situations I don't want to populate the requestID element in
the response so I would expect the response NOT to include a <requestID>
tag at all in the response but I'm getting a <requestID>null</requestID>
when I don't set the requestID value.  Is there some way to not even
populate my requestID element in the response if this value is null?

 

Thanks,

David

Reply via email to