2010-11-09 55 views
0

我可以連接到網絡服務並使用各種設備下載數據,例如具有OS 4.6或更高版本的BlackBerry 9000。BlackBerry 8330連接問題

但是,8330和OS 4.5.0.77不起作用。我還沒有在83.0以上的任何設備上使用這個代碼。 在8330上掛起了JSR172 web服務調用中的resultObj = op.invoke(inputObject);行。這是在第一次webservice調用成功後 - 它掛在第二個。

實際上有兩個web服務:

  1. 用於身份驗證的Web服務。
  2. 該webservice用於下載所有的信息。

事情我已經迄今爲止嘗試:

  1. 擦拭設備 - 什麼也沒做
  2. 將設備連接到Eclipse,看到底是怎麼回事 - 沒發現什麼有用的
  3. 使用4.5(MDS運行)在8330模擬器上運行代碼 - 毫無問題地運行,沒有問題

有誰知道如何解決這個問題?

這裏是我建我的連接字符串:

String webserviceURL = developmentUrl; 

    // if it is simulator then force the network that is available on 
    // the PC 
    if (DeviceInfo.isSimulator()) { 
     webserviceURL += ";deviceside=true"; 
    } else if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { 
     // go through MDS 
     webserviceURL += ";deviceside=false"; 
    } 
    // else if ((CoverageInfo.getCoverageStatus() & 
    // CoverageInfo.COVERAGE_CARRIER) == CoverageInfo.COVERAGE_CARRIER) 
    // { 
    // webserviceURL += "'deviceside=true";// go direct 
    // } 

    // check if the wifi is available and change the url to use the wifi 
    // signal 
    if ((RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN) != 0) 
    // check for carrier 
    { 
     if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) 
     // check for wifi 
     { 
      // WebService URL when the app is being used in the 
      // actual device 
      webserviceURL = webserviceURL + ";interface=wifi"; 
     } 
    } 

    // WebService URL when the app is being used in the actual device 
    _propertyValues = new Object[] { webserviceURL }; 

回答

0

我能夠去〜50K塊的數據來解決這個問題。我很樂意幫助有類似問題的人。