开发者

DNS Error On BlackBerry Simulator and Phone

Hey all, having a little trouble here with connecting my application on BB. I'm using ksoap2 to call a java webservice i made running on GlassFish 3. On the simulator when i call this url

"http://equilibrio-120:8088/SocialVoiceServer/SocialServerWSService"开发者_运维问答

everything works well and it connects, the web service is currently running on my own computer. But if i append ";deviceside=true" to the url it will fail giving me a DNS Error. Anyone know why this happens?


"deviceside=true" tells the connection to use DirectTCP which goes over the cell phone carrier's network. Since the service is running on your local computer the blackberry will need to be connected to that network so append the URL with ";interface=wifi" to use your wi-fi network. Alternatively, you could host the web service somewhare that is accessible to the internet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜