1
我正在做一個方法來更新客戶主數據,但是當我走這個方法時遇到了麻煩發送對象,有人有看到這個問題?發送一個類型複雜Soap錯誤org.xmlpull.v1.XmlPullParserException:預期:START_TAG
下面的代碼
public String atuzalizarCadastroCliente(DadosCadastraisSeralizable dados) throws IOException, XmlPullParserException {
SoapObject request = new SoapObject("urn:RouterBoxMobile", "AtualizarCadastroClientes");
SoapObject chaveIntegracao = new SoapObject("urn:RouterBoxMobile", "AtualizarCadastroClientes");
chaveIntegracao.addProperty("ChaveIntegracao",chaveDeIntegracao);
request.addProperty("Autenticacao", chaveIntegracao);
request.addProperty("DadosAtualizadosClientes",dados);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.implicitTypes=true;
httpTransportSE = new HttpTransportSE(URL_WEBSERVICE);
httpTransportSE.debug=true;
httpTransportSE.call("",envelope);
SoapObject response = (SoapObject) envelope.getResponse();
//resposta=envelope.getResponse();
return response.toString();
}
錯誤日誌:
11-07 11:31:19.726 19420-19701/routerbox.com.br.centraisdoassinante W/System.err: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG (empty) <br>@1:7 in [email protected])
11-07 11:31:19.726 19420-19701/routerbox.com.br.centraisdoassinante W/System.err: at org.kxml2.io.KXmlParser.require(KXmlParser.java:2046)
11-07 11:31:19.726 19420-19701/routerbox.com.br.centraisdoassinante W/System.err: at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:127)