Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
NerdyBunny
Posts: 8
Registered: ‎06-28-2011
My Device: Simulator
My Carrier: Simulator

BlackBerry simulator can connect to the web service, but the real device cannot

I am developing BlackBerry application that connects to the web service.

When I developed on simulator, I used BlackBerry MDS for simulator and everything just went fine. My application (running on simulator) can connect with my web service perfectly. Please note that the simulator and the web service are on different PCs.

 

Now, my project is done. I tried deploying my app to the real device (BB 8520). When I used the app on the device, I found it can't connect to the web service. I did a research on the Internet and I am sure it must be due to MDS issue. It seems like I have to do something with MDS on the computer where my web service resides, but I still can't find the obvious answer.

 

Anyone please help me...

 

PS. My web service is published on IIS and is developed in Visual Studio 2010. The BlackBerry application is developed in Eclipse and connects to web service via ksoap2. Firewall on the computer where web service resides is closed. The connection used is WIFI. I tried accessing my web service via wifi from the browser in BB device and there was no problem. But when I tried accessing it from my BB app installed in the device, it just CAN'T. :smileysad:

Please use plain text.
Developer
simon_hain
Posts: 15,956
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: BlackBerry simulator can connect to the web service, but the real device cannot

do you have any connection logic?
see http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-make-an-HTTP-or-socket-con...
or
http://supportforums.blackberry.com/t5/Java-Development/Sample-HTTP-Connection-code-and-BIS-B-Access...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Contributor
NerdyBunny
Posts: 8
Registered: ‎06-28-2011
My Device: Simulator
My Carrier: Simulator

Re: BlackBerry simulator can connect to the web service, but the real device cannot

Thanks for your quick reply.

The URL I put in the code to call web service is just simple like this
String URL = "http://xx.xx.xx.xx/myapp/myservice.asmx";

From your links, if I don't misunderstand, it seems like I need to change the URL to "http://xx.xx.xx.xx/myapp/myservice.asmx;deviceside=false" right? How about the server side? Do I need to do something related to MDS with it?
Please use plain text.
Developer
simon_hain
Posts: 15,956
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: BlackBerry simulator can connect to the web service, but the real device cannot

deviceside=false would force a mds connection, yes.
no change on the server necessary.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.