Define the element as nillable="false" and specify minOccurs="0".

Anne

On 1/18/06, Kasi, Anand <[EMAIL PROTECTED]> wrote:

Hi All,

I am using Axis 1.3. Is there any way of eliminating the xml element from the soap message when the element 's xsi:nil is set to "true" .

Instead of

  

<advisory>

                    <advCondTextCode>Generic Error < /advCondTextCode>

                    <code>10 0</code>

                    <errorLevel xsi:nil="true"/>

                    <fullAdvisoryText xsi:nil="true"/>

  </advisory>

I want to see

   <advisory>

                    <advCondTextCode>Generic Error < /advCondTextCode>

                    <code>10 0</code>

  </advisory>

Thanks,
Anand


Reply via email to