当我尝试在下面的行之后在 android 中调用soap webservices
androidHttpTransport.call(SOAP_ACTION, envelope);
程序直接跳转到捕获程序应该被调用result = envelope.getResponse();
,但我没有恢复响应任何人帮助的可能解决方案是什么?
try {
System.out.println("Token ===sssTTTTTT " );
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("encAppName", "dsakjsfj");
request.addProperty("sessionInfo", "sadsadsdf");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
result = envelope.getResponse();
Toast.makeText(getBaseContext(), " Result " + "\n" + result.toString(), Toast.LENGTH_SHORT).show();
System.out.println("response === " + result.toString());
} catch (Exception e) {
// txtprint.setText(e.getMessage());
}