BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Calling Web Service using WiFi Connection (http://www.blackberryforums.com/developer-forum/160170-calling-web-service-using-wifi-connection.html)

hemant.bobade 11-17-2008 11:48 PM

Calling Web Service using WiFi Connection
 
Hello All,
I am developing an Application in BB in which I am calling the web service.

This is working properly with the carrier internet.

But when I am trying to call the web service from the device with Wi-Fi Connection, I am not able to connect to Web service.

To use Wi-Fi Connection, I read te BlackBerry documentation which says to append the "deviceside=true;interface=wifi" infront of the url.

I am making HttpConnection like this,

url = "http://server-IP/web-service;deviceside=true;interface=wifi;ConnectionT ype=mds-public";

I tried with deviceside=false also, but still it is not working

In norml case, with deviceside=false;ConnectionType=mds-public, it is working OK.

Can anyone please guide me here, what am I doing wrong? Am I missing something obvious here.

Is there any other setting I need to do to call Web service with WiFi connection.
Thanks,

Hemant.

zerog46 11-17-2008 11:55 PM

Moved to the Developer Forum, you will have better luck here.

robinShazam 11-19-2008 07:27 AM

I tried interface=wifi and couldn't get it to work on our 8120.

I could see a WPTCP service record with "wi-fi" in the name so i tried using that and it worked ok. So, get the service books for cid WPTCP and check the name of each for "wi-fi" (i also check for "wifi") and use the uid in the connection string - ;deviceside=true;ConnectionUID=<whatever>

If anyone has an better alternative please say!


All times are GMT -5. The time now is 01:57 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.