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:[EMAIL PROTECTED]
http://www.indra.es/
 P  Cuide el medio ambiente, no imprima este correo si no es necesario.
 

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

Reply via email to