开发者

blackberry java webservice error

开发者 https://www.devze.com 2023-02-05 18:05 出处:网络
i didnt get the output of the code. HttpConnection httpConn; httpConn = (HttpConnection)Connector.open(\"http://mydomainname.getsample.php?getData=mydata\");

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

精彩评论

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