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

Reply via email to