2011-12-14 43 views

回答

4

在你的web服务消费方法,你可以以后

HttpTransportSE.call(SOAP_ACTION, envelope); 

代码行中使用

HttpTransportSE.responseDump 

。它以XML格式提供响应。

+0

没有老板它没有wrking ....我写的代码为 // Object response = envelope.getResponse(); SoapObject result =(SoapObject)envelope.getResponse(); String ss = httpTransport.responseDump; – 2012-01-20 18:19:59

4
httpTransport.debug=true; 
httpTransport.call(SOAP_ACTION, envelope); 
String ss=httpTransport.responseDump; 

and print ss。你一定会得到一个XML格式