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 "Kasi, Anand" <An...@sabre-holdings.com> on 2006/01/19 00:12:02 UTC

Eliminating element with xsi:nil

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>100</code>
                    <errorLevel xsi:nil="true"/>
                    <fullAdvisoryText xsi:nil="true"/>
  </advisory>

I want to see 

   <advisory>
                    <advCondTextCode>Generic Error </advCondTextCode>
                    <code>100</code>
  </advisory>

Thanks,
Anand

Re: Eliminating element with xsi:nil

Posted by Anne Thomas Manes <at...@gmail.com>.
Define the element as nillable="false" and specify minOccurs="0".

Anne

On 1/18/06, Kasi, Anand <An...@sabre-holdings.com> 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>100</code>
>
>                     <errorLevel xsi:nil="true"/>
>
>                     <fullAdvisoryText xsi:nil="true"/>
>
>   </advisory>
>
> I want to see
>
>    <advisory>
>
>                     <advCondTextCode>Generic Error </advCondTextCode>
>
>                     <code>100</code>
>
>   </advisory>
>
> Thanks,
> Anand
>

AW: Eliminating element with xsi:nil

Posted by Franz Fehringer <fe...@isogmbh.de>.
Eliminating element with xsi:nilCurrent Axis1 (at least the C/C++
implementation) emits elements with xsi:nil=true where it shouldn't emit
anything.
This is resolved in current SVN.

Franz
  -----Ursprungliche Nachricht-----
  Von: Kasi, Anand [mailto:Anand.Kasi@sabre-holdings.com]
  Gesendet: Donnerstag, 19. Januar 2006 00:12
  An: axis-user@ws.apache.org
  Betreff: Eliminating element with xsi:nil


  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>100</code>

                      <errorLevel xsi:nil="true"/>

                      <fullAdvisoryText xsi:nil="true"/>

    </advisory>

  I want to see

     <advisory>

                      <advCondTextCode>Generic Error </advCondTextCode>

                      <code>100</code>

    </advisory>

  Thanks,
  Anand