Help!! Objects with Vectors
"Jose Manuel Kiernan" <[email protected]> Mon, 16 Jun 2003 11:49:30 +0200 (Hora de verano romance)
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <3EED92AA.000003.01436@computad-np22h5> |
Hello. I've a problem with ksoap vectors: I can send and recive vectors but
when I try to send an object that it has an
vector like attribute of this object in the server side I get the object
well. However the vector's values are null.
What can I do? I've tried it a lot of diferents ways but I couldn't make
that the program working.
I'm using ksoap like client and Apache Soap 3.2.4 like server. Thanks
My code:
HttpTransport transport;
SoapObject request;
ClassMap classMap;
...
request = new SoapObject(this.serviceNamespace,"Alta");
classMap =new ClassMap();
classMap.addMapping(this.serviceNamespace,"Contacto",this.contacto
getClass());
transport =new HttpTransport(serviceUrl, "AgendaService#Alta");
transport.setClassMap(classMap);
transport.debug=true;
request.addProperty("Contacto",this.contacto);
int nuevoId= ((Integer)transport.call(request)).intValue();
...
type contacto:
int id;
String alias;
String nombre;
String apellidos;
int numTlf;
Vector tipoTelefono;
Vector telefonos;
String email;
String direccion;
String codigoPostal;
String poblacion;
String provincia;
String notas;
IMSTP.gif
(image/gif, 494 B) - not displayed