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.
精彩评论