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 "Capilla Castillo, Esther" <ec...@indra.es> on 2008/08/26 14:15:06 UTC
Error to read the response of the service
Hi all,
I'm developing a web service with axis 1.4 with Java, and the service return a Response with a vector of string (String[] listaString). In the service the return have 3 strings, but in the client when read the response of the service, the vector only contain the final element. For example:
If the service makes the following response:
ResponseListarHijosDocVirtual response = new ResponseListarHijosDocVirtual();
String[] listaDatosHijos = new String[3];
listaDatosHijos[0] = "uno";
listaDatosHijos[1] = "dos";
listaDatosHijos[3] = "tres";
response.setListaDatosHijos(listaDatosHijos);
return response;
In the client...
response = usoServicio.listarHijosDocVirtual(req); //here obtain the response of the service
String[] lista = response.getListaDatosHijos();
System.out.println("Size: "+ lista.length); //here write 1
System.out.println("Elment: "+ lista[0]); //here write 'tres'
Where is the rest of element?
thanks
Esther Capilla Castillo
GestiĆ³n Documental
Centro Mixto de I+D Indra-UCLM
Ronda de Toledo s/n
13005 - Ciudad Real
Tlfno: +34 92 601 21 20 Ext. 28919
Fax: +34 92 601 21 23
e-mail:ecapilla@indra.es
http://www.indra.es/
P Cuide el medio ambiente, no imprima este correo si no es necesario.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org