我的网络服务
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();
}
我的网络服务工作正常,但我无法获得out参数。当我检查响应时它只包含返回值not out参数。我怎么能得到out参数。请指教。
答案 0 :(得分:0)
这是参数问题。代码没有错。感谢。