开发者

J2me web service connection problem

开发者 https://www.devze.com 2022-12-11 19:13 出处:网络
i\'m trying to connect to a php web service using kxml-rpc api and the code is as simple as this: XmlRpcClient xmlrpc = new XmlRpcClient(\"http://***ip here***:88/secure/service\");

i'm trying to connect to a php web service using kxml-rpc api and the code is as simple as this:

XmlRpcClient xmlrpc = new XmlRpcClient("http://***ip here***:88/secure/service");

Vector parameters = 开发者_如何学Pythonnew Vector();
parameters.addElement("value");

String result = (String) (xmlrpc.execute("functionName", parameters));

Mobile device asks for permission to connect to GPS. But somehow the result is always null.

What can be done? and what configuration i should check?

Thanks.


Check whether the web service provider is actually invoked, and what does it return. It is not unlikely that it returns null, (so the clients gets it).

0

精彩评论

暂无评论...
验证码 换一张
取 消