You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by R J Scheuerle Jr <sc...@us.ibm.com> on 2001/12/31 17:01:03 UTC

RE: Issue xsi:nil="true" sent even if send xsi is off (FIXED)

I just fixed this according to your note.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                                           
                    Mark Roder                                                                             
                    <mroder@wamnet       To:     "'axis-dev@xml.apache.org'" <ax...@xml.apache.org>     
                    .com>                cc:                                                               
                                         Subject:     RE: Issue xsi:nil="true" sent even if send xsi is    
                    12/31/2001            off                                                              
                    09:26 AM                                                                               
                    Please respond                                                                         
                    to axis-dev                                                                            
                                                                                                           
                                                                                                           




Since the option is to remove type information, I would go with number 2.
That is all the behavior that the option implies.

Another option may be nice to allow turning on/off the serialization of
empty elements.

Later

Mark





-----Original Message-----
From: R J Scheuerle Jr [mailto:scheu@us.ibm.com]
Sent: Monday, December 31, 2001 9:11 AM
To: axis-dev@xml.apache.org
Cc: 'axis-dev@xml.apache.org'
Subject: Re: Issue xsi:nil="true" sent even if send xsi is off


What should be the proper behavior under these circumstances?

1)  Don't serialize the element at all?

     -or-

2) Serialize an empty element?


Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)




                    Mark Roder

                    <mroder@wamnet       To:
"'axis-dev@xml.apache.org'"
<ax...@xml.apache.org>
                    .com>                cc:

                                         Subject:     Issue xsi:nil="true"
sent even if send xsi is off
                    12/31/2001

                    08:33 AM

                    Please respond

                    to axis-dev









On a client side application I have code to shut off the xsi type
information:
    Call aCall = (Call) service.createCall();
    aCall.setTargetEndpointAddress(url);
    aCall.setOption(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    aCall.setOption(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
    aCall.setOption(Call.SEND_TYPE_ATTR, Boolean.FALSE);

xsi information is still being generated for null objects when I use the
BeanSerializer.

[snip]
  <AssetRepresentationList>
    <item>
     <AssetLocator>WG0000005940</AssetLocator>
     <DateCreated xsi:nil="true"/>
     <RepresentationName xsi:nil="true"/>
     <FileName xsi:nil="true"/>
     <FileSize xsi:nil="true"/>
     <FileEncoding xsi:nil="true"/>
[snip]



Later

Mark