开发者

blackberry java webservice error

i didnt get the output of the code.

HttpConnection httpConn;
httpConn = (HttpConnection)Connector.open("http://mydomainname.getsample.php?getData=mydata");
httpConn.setRequestMethod(HttpConnection.GET);
int iResponseCode = httpConn.getResponseCode();
System.out.print(iResponseCode);

what is the error?. how i get the output ? iam using blackbe开发者_如何学运维rry simulator. on pc, the url retriving the data.


if you are using eclipse

right click on the project->run as ->run configurations->simulator

check the option for launch mds with simulator.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜