BlackBerry - 从真实设备访问网络服务
您好,我开发了一个应用程序,在模拟器上运行良好,现在我想在实际设备上测试该应用程序。 我的应用程序尝试通过互联网访问网络服务。我的意思是,应用程序向 Web 服务发出 SOAP 请求。我还使用 https 访问网络服务 那么在这种情况下,我需要先签署申请吗? 如果没有,那么我该如何继续部署应用程序。
我尝试使用黑莓桌面管理器部署应用程序,应用程序已安装,但它没有调用 Web 服务。我的意思是,应用程序没有访问 Web 服务
hi i have developed a application, that works fine on the simulator, now i want to test the application on the actual device.
my application tries to access web services over the internet. I mean to say, the application makes SOAP request to web services. Also i am accessing the web services using https
So in this case, do i need to first sign the application.
if not, then how do i go ahead, with deploying the application.
i tried deploying the application, using the blackberry desktop manager, the application got installed, but it is not making calls to web service.i mean to say, the application is not hitting the web service
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否从应用程序中收到任何错误消息?如果您需要签署任何 API,那么您将收到错误。
使用黑莓浏览器检查是否可以访问网络服务。有时,如果您的手机位于 BES 上或 Web 服务位于防火墙后面,则可能会出现问题。
检查您是否有连接,否则会超时。
Are you getting any error messages from the application? If you need to sign any API's then you'll receive an error.
Use the Blackberry Browser to check if you can hit the webservice. Sometimes there can be issues if your handset is on a BES or if the webservice is behind a firewall.
Check that you have connections or it will timeout.
https连接可以参考fol.帖子:
http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-connections-to-the/mp/206242
For https connection you can refer to foll. post :
http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-connections-to-the/m-p/206242
此问题与某些 MDS 服务器可传递的请求大小默认值较低有关:
http://supportforums.blackberry.com/t5/Java-Development/HTTP-413-Request-Entity-Too-Large/ta-p /445983
我自己仍在尝试为返回大型 XML 数据包的服务找出一个好的解决方案,因为无法可靠地知道用户的服务是否具有默认的最小值或更高的值。
This issue has to do with some MDS servers having a low default for how large the requests they can pass through are:
http://supportforums.blackberry.com/t5/Java-Development/HTTP-413-Request-Entity-Too-Large/ta-p/445983
Still trying to sort out a good solution to this myself for a service that returns a large XML packet since it can't be reliably known whether a user's service has the default minimum or something higher.