2011-09-14 2 views
0

BlackBerry 용 암호 유효성 검사를 수행하려고합니다. 코드를 작성하고 "debug as blackberry emulator"를 실행하여 콘솔을 볼 수 있습니다. 현재 내 결과를 인쇄하려고하지만 아무 일도 일어나지 않습니다. 출력이 없습니다. 나는 코드를 첨부 할 것이고, 여기에 내 코드에 문제가 있습니까? 아니면 블랙 베리에 대한 설정을 적용하지 않았습니까? ksoap2를 사용 중이고 jar 파일을 라이브러리에 첨부했습니다. 거의 동일한 코드를 사용하여 동일한 서비스에 연결하는 Android 앱을 만들었습니다.BlackBerry 용 kSOAP2 응답을받을 수 없습니다.

까지 java.io.InterruptedIOException : :이 오류가 로컬 연결이 ~ 120,000

내가 실행 구성에 갔어요 후 시간 초과와 MDS 및 활성화 등록, 연결을 방지 할 수있는 다른 작업을 활성화 ?

SoapObject rpc = new SoapObject(NAMESPACE, METHOD_NAME); 
     rpc.addProperty("User", "raji"); 
     rpc.addProperty("Password", "PASSWORD"); 
     SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); 

     envelope.bodyOut = rpc; 
     envelope.dotNet = true; 
     envelope.encodingStyle = SoapSerializationEnvelope.XSD; 

     HttpTransport ht = new HttpTransport(URL); 
     ht.debug = true; 

     try 
     { 
     ht.call(SOAP_ACTION, envelope); 

     String result = (envelope.getResult()).toString(); 
     String result2 = (envelope.getResponse().toString()); 
     System.out.println(result + "HERE YA GO"); 
     System.out.println(result2 + "HERE YA GO"); 

     } 
     catch(org.xmlpull.v1.XmlPullParserException ex2){ 

     } 
     catch(Exception ex){ 
     String bah = ex.toString(); 
     System.out.println(bah + "HERE YA GO 2"); 
     } 

여기 SOAP을 활성화하는 변수는 정확한 IP를 표시 할 수 없기 때문에 x를 넣었습니다.

public static final String NAMESPACE = "http://tempuri.org/"; 
    public static final String URL = "http://xxx.xxx.xx.x:xxxxx/XXXXXXX/IDLMobile.asmx?WSDL"; 
    public static final String SOAP_ACTION = "http://tempuri.org/ValidateUser"; 
    public static final String METHOD_NAME = "ValidateUser"; 

답변

1

해결. 이것은 MDS 관련 문제였으며 디버그 실행 설정에서 "등록 해제"상자가 선택되었으므로 선택을 취소하고 계속 진행하십시오.