2012-04-22 77 views

回答

0

隨着kSoap2,我能叫肥皂Web服務這樣的:

 SoapObject request = new SoapObject(AppConstants.NAMESPACE, AppConstants.METHOD_NAME_GetLiveCalls); 

     SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); 
     envelope.dotNet=true; 
     envelope.setOutputSoapObject(request); 

     HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); 
     //androidHttpTransport.debug = true; 
     androidHttpTransport.call(AppConstants.SOAP_ACTION_GetLiveCalls, envelope); 

     SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); 
     response = result.toString(); 
+0

我需要打電話與出ksoap2 web服務,因爲我有問題創造SoapObject到活動的OnCreate事件...有另一種方法來調用.net WebService – user1349296 2012-04-23 09:24:51