ASP.NET 웹 서비스를 구축했으며 Blackberry에서 액세스하려고합니다. 나는 여러 대의 장치와 시뮬레이터로 테스트를 해봤지만 제대로 작동하지만 Blackberry 9000 (모델이 아니며 다른 Blackberry 9000을 사용해 보았습니다)이 응답을 기다리고 있습니다. 서버에서. 이 액세스 코드의 관련 섹션 -블랙 베리 응용 프로그램이 서버에 액세스하려고 시도했습니다.
System.out.println("IN ntwk access thread, start point");
HttpConnection connection = (HttpConnection)Connector.open(serviceURL + WSNAME);
connection.setRequestMethod(HttpConnection.POST);
connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
connection.setRequestProperty("Content-length", Integer.toString(postData1.length));
OutputStream requestOutput = connection.openOutputStream();
requestOutput.write(postData1);
requestOutput.close();
final int responseCode = connection.getResponseCode();
if(responseCode!= HttpConnection.HTTP_OK) {
//Process the error condition
}
// Request succeeded process the data.
이 connection.getResponseCode()
후 갇히지 것으로 보인다. 이 특정 장치에 어떤 문제가 있는지 확인할 수있는 방법이 있습니까?
감사합니다,
테이야