The problem is that this method does not pass parameters can be properly called, but a but pass the Senate, the server will receive the parameter is null, read their online statement, but still not resolved. Passed parameter names are consistent, Please answer
Here is my call to port code
public String queryMsg (String nameSpace, String methodName, String endPoint, String [] values, String [] keys) {
SoapObject rpc = new SoapObject (nameSpace, methodName);
for (int i = 0; irpc.addProperty (keys [i], values [i]);
}
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (
SoapEnvelope.VER11);
envelope.bodyOut = rpc;
envelope.dotNet = false;
HttpTransportSE transport = new HttpTransportSE (endPoint);
try {
/ / Call WebService
transport.call (null, envelope);
} Catch (Exception e) {
e.printStackTrace ();
}
/ / Get the returned data
SoapObject object = (SoapObject) envelope.bodyIn;
/ / Get the results returned
String result = object.getProperty (0) toString ();.
Log.i ("show", result);
return result;
}
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Today, this issue is considered completely resolved, have the same problem, you can leave a message
Reply:
How to solve? Please advise!
Reply:
Encountered the same problem, find the landlord let us know!
Reply:
The solution is to pass parameters are arg0, arg1 ...... agrn
Reply:
Me and my little partner shocked
Reply:
I arg0 nor ah!
Reply:
How to solve?
Reply:
Encountered the same problem, I tried using the parameter arg0, not seeking moderator enlighten me!
No comments:
Post a Comment