1
我用我的應用程序的SOAP請求,在我的SOAP請求結構如下:設定輸入到SOAP請求
<Data>
<Keys>
<String>
<V>string</V>
<K>string</K>
</String>
<String>
<V>string</V>
<K>string</K>
</String>
<Keys>
<CriteriaKeys>
<String>
<V>string</V>
<K>string</K>
</String>
<String>
<V>string</V>
<K>string</K>
</String>
</CriteriaKeys>
<No>int</No>
<Size>int</Size>
</Data>
在這方面,我有問題,設置輸入request.How我可以設置使用方法addProperty method.Following這個複雜類型的輸入是我的SOAP調用代碼:
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapObject authentication = new SoapObject(NAMESPACE,"authentication");
Setting property for authentication
request.addSoapObject(authentication);
SoapSerializationEnvelope envelope=new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.dotNet=true;
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try
{
androidHttpTransport.call(SOAP_ACTION,envelope);
SoapObject result=(SoapObject)envelope.getResponse();
Log.i("myApp",result.toString());
}
嗨帕里斯Mayani謝謝..但我是新來的android我不能理解你的建議。我已經編輯我的問題與SOAP調用code.In那我該怎麼做。 – subburaj