Just follow my code.
public String loginCentral(LoginSerealizable login) throws IOException, XmlPullParserException {
SoapObject request = new SoapObject("urn:RouterBoxMobile","LoginCentral");
SoapObject chaveIntegracao = new SoapObject("urn:RouterBoxMobile","LoginCentral");
chaveIntegracao.addProperty("ChaveIntegracao",chaveDeIntegracao);
request.addProperty("Autenticacao",chaveIntegracao);
request.addProperty("DadosLoginCentral",login);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
HttpTransportSE httpTransportSE = new HttpTransportSE(URL_WEBSERVICE);
httpTransportSE.call("",envelope);
SoapObject response =(SoapObject) envelope.bodyIn;
this.codigoCliente = response.getProperty(0).toString();
this.permissoes = response.getProperty(1).toString();
return response.toString();
}
I have solved the problem by following here. http://stackoverflow.com/questions/3038165/ksoap2-casting-getresponse
– rodrigo.oliveira
Rodrigo why not put an answer with the solution? It may in the future help others with the same problem.
– ramaral
@ramaral, I just posted the solution.
– rodrigo.oliveira