To send a primitive data is simple, but when it comes to complex data like the one shown below, an exception is thrown:
java.lang.RuntimeException: Can not serialize: Person {name = given, address = given etc ...}
Most of the tutorials and examples address the use of primitive types rather than complex types like the one presented here.
Given an object represented below:
public class Pessoa {
private String nome;
private String endereco;
private List<String> emails;
private boolean ativo;
// getters e setters
@Override
public String toString(){
return "Pessoa{nome="+dado+", endereco="+dado+" etc...}";
}
}
How to send it to a web service with the SOAP standard using the kSOAP library?