黑莓 - 应用程序连接到Web服务上的模拟器,但不是在装置 [英] BlackBerry - App connects to webservice on simulator, but not on device

查看:130
本文介绍了黑莓 - 应用程序连接到Web服务上的模拟器,但不是在装置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个应用程序,被安装在手机上。
应用程序的简要信息,这是访问Web服务,从另一台机器。
现在我测试仿真器上的应用程序在两个方面

i have developed an application, that gets installed in the mobile phone. The brief information of application is it is accessing web services, from another machine. Now i tested the application on the simulator in 2 ways

1)MDS:在应用程序中,有机器,其中Web服务是present的URL。这个网址是生成的存根,我不会更改的网址。我启动MDS-CS服务器,现在,应用程序工作正常。结果
  2)直接TCP:到url,我追加; deviceside = true添加到URL。如今,这个时候,我不启动MDS-CS,并且应用程序在这种情况下工作。

1) MDS: in the application , there is a url of the machine, where web services are present. this url is in the stubs generated ,i make no changes to the url. and i start the MDS-cs server , Now the application works fine.
2) Direct TCP: to the url , i append ;deviceside=true to the url. and now, this time, i dont start the MDS-CS, and the application works in this case.

但是,现在,当我在设备中安装这些文件,应用程序不起作用。
我还没有与MDS试了一下,监守我需要从黑莓队在我们的组织采取的支持。这将需要更多的时间。
所以,我有,直接TCP试了一下,我抹了设备并安装应用程序。但它并不work.Please帮助我,在这种情况下。

But, now when i install these files in the device, the application doesnt work. I havent tried it with MDS, becuase i need to take support from the blackberry team in our org. which would take more time. So i have tried it with, Direct TCP, i wiped the device and installed the application. but it does not work.Please help me , in this case.

推荐答案

网络的BlackBerry设备上可能会有点复杂。我强烈建议通过<一去href=\"http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-connections-to-the/td-p/206242\"相对=nofollow>这个论坛帖子在所有涉及使用HTTP上的黑莓问题和复杂性的底漆。非常有用的信息,很多在那里。

Networking on a BlackBerry device can be a little complicated. I highly recommend going through this forum post for a primer on all of the issues and complexities involved with using HTTP on a BlackBerry. Lots of very useful information in there.

这篇关于黑莓 - 应用程序连接到Web服务上的模拟器,但不是在装置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆