Vectors in KSOAP

"Jose Manuel Kiernan" <[email protected]> Thu, 22 May 2003 18:03:15 +0200 (Hora de verano romance)
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <3ECCF4C2.000001.01476@computad-np22h5>
 
I'm worked with KSOAP in a J2ME client and Apache Soap in server side.I
build this request:
 
 
<SOAP-ENV:Envelope xmlns:n0="AgendaService" xmlns:xsi="http://www.w3
org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV=
http://schemas.xmlsoap.org/soap/envelope/">
 <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap
org/soap/encoding/">
  <n0:Alta id="o0" SOAP-ENC:root="1">
   <Contacto xsi:type="n0:Contacto">
    <id xsi:type="xsd:int">0</id>
    <alias xsi:type="xsd:string">Bat</alias>
    <nombre xsi:type="xsd:string">Alan</nombre>
    <apellidos xsi:type="xsd:string"></apellidos>
    <numTlf xsi:type="xsd:int">3</numTlf>
    <tipoTelefono xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=
xsd:anyType[3]">
     <item xsi:type="xsd:string">home</item>
     <item xsi:type="xsd:string">cell</item>
     <item xsi:type="xsd:string">work</item>
    </tipoTelefono>
    <telefonos xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:anyType[3]
>
     <item xsi:type="xsd:string">652100000</item>
     <item xsi:type="xsd:string">000000000</item>
     <item xsi:type="xsd:string">888888888</item>
    </telefonos>
    <email xsi:type="xsd:string"></email>
    <direccion xsi:type="xsd:string"></direccion>
    <codigoPostal xsi:type="xsd:string"></codigoPostal>
    <poblacion xsi:type="xsd:string"></poblacion>
    <provincia xsi:type="xsd:string"></provincia>
    <notas xsi:type="xsd:string"></notas>
   </Contacto>
  </n0:Alta>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
 
but in server side I am not able to obtain the values of the vectors. My
object has the next fields in the server :
  int id;
  String alias;  
  String nombre;
  String apellidos;
  int numTlf;
  String[] tipoTelefono;      I have tried with Object[] and Vector without
sucess
  String[] telefonos;            I have tried with Object[] and Vector
without sucess
  String email;
  String direccion;
  String codigoPostal;
  String poblacion;
  String provincia;
  String notas;

and the next method:
  int getId();                                 void setId(int n);
  String getAlias();                     void setAlias(String s);  
  String getNombre();               void setNombre(String s);
  String getApellidos();             void setApellidos(String s);
  int getNumTlf();                        void setNumTlf(int n);
  String[] getTipoTelefono();     void setTipoTelefono  (Vector v);   
  String[] getTelefonos();           void setTelefonos(Vector v);
  String getEmail();                    void setEmail(String s);
  String getDireccion();             void setDireccion(String s);
  String getCodigoPostal();      void setCodigoPostal(String s);
  String getPoblacion();            void setPoblacion(String s);
  String getProvincia();             void setProvincia(String s);
  String getNotas();                   void setNotas(String s);

What do I modify to solve this? thanks
IMSTP.gif (image/gif, 494 B) - not displayed