What do you mean by setting an array to null, XML-wise?

I can see setting an array of length 0, or setting an array of length 1
containing one null element, but a null array I can't see how this would
map to XML.

Radu

On Thu, 2007-04-05 at 14:43 +0200, Jorge Fernandez wrote:
> 
> Hi,
> 
> I'm using xmlbeans as databinding in axis2. In some classes I
> generated with wsd2java, I have Array fields and if I set an array
> with a null value, I get a NPE.
> 
> I have the same problem when I build the response message for my web
> service if I have to return null array. When I do
> responseElement.setReturnArray(array), and the array is null, it
> Throws also a NPE.
> 
> With other objects I can use a setNil method but arrays only have a
> method for setting null a component and not the shole array.
> 
>  I tried to set a String field to null with the setValue method
> instead of setNilValue and it works perfectly. Is not possible to set
> an array to null in xmlbeans classes??
> 
> Can anybody tell me what I'm doing wrong and how should I set a null
> array??
> 
> Thanks in advance and regards,
> 
> Jorge Fernández
> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> 
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com

Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to