0
我的webAndroid的web服務走出參數
public int GetWayBillBySachetID(int version, string encryptedJsonIn, out string encryptedJsonOut)
{
// some codes
return number;
}
的Android
SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,
OPERATION_NAME);
request.addProperty("version", "100");
request.addProperty("encryptedJsonIn", object.toString());
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE httpTransport = new HttpTransportSE(
SOAP_ADDRESS);
httpTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
}
我的web服務工作正常,但我無法獲得out參數。當我檢查響應它只包含返回值沒有出參數。我如何得到out參數。請指教。
SoapObject response =(SoapObject)envelop.bodyIn;嘗試這個。 if(response!= null)Object o = response.getProperty(「name of the parameter」); } – Raghunandan