黑莓网络服务
我希望将现有的应用程序公开为网络服务,以便在黑莓上使用。所以我对黑莓及其网络服务的使用有一些疑问。
我想知道是否可以在 blackberry 上使用 Restful Web 服务(使用 JSON 作为有效负载),或者 SOAP 是 balckbery 可以执行的唯一 Web 服务吗?
最近,我在普通的网络应用程序中使用了 Jersey 框架来提供网络服务,我认为这适合我当前的要求,只需要知道这在黑莓上是否可行。实际上,黑莓只需要发送/接收/处理 HTTP 调用和 JSON,所以我想这可能吗?
另外,我可能必须使用企业黑莓服务器,如何将来自应用程序(和企业服务器)的请求路由到后端现有应用程序。这是否与企业服务器上的某些配置设置无缝连接,或者黑莓应用程序是否需要以某种方式处理此问题?
I am looking to expose an existing app as web service for use on the Blackberry. So I have some questions around the blackbery and its use of web services.
I am wonderings is it possible to use Restful web services (using JSON as the payload) on the blackbery or is SOAP the only web services the balckbery can do?
In recent times I have used the Jersey framework for web services in normal web apps and I think this would suit my current requirements,just need to know if this is possible on the blackberry. Effectively the blackbery would only need to send/recive/procees HTTP calls and JSON so I would imagine this would be possible?
Also I may have to use the enterprise blackberry server, how do I route requests to/from the app (and the enterprise server) to the back end existing app. Is this all seamless with some config settings on the enterprise server or does the the blackberry application need to handle this in a certain way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您绝对可以在 BlackBerry 上使用 RESTful 服务和 JSON。根据您的目标版本,您可能需要下载 JSON 库。 http://java.sun.com/ 上还有一个很好的参考指南developer/technicalArticles/javame/json-me/ 你可以看一下。
企业服务器不应该影响您使用它的能力,因为您本质上是在进行与浏览器相同的调用,并且它会知道如何路由该流量。
You can definitely use a RESTful service and JSON on the BlackBerry. Depending on the version you are targeting you may have to download a JSON library. There is also a good reference guide at http://java.sun.com/developer/technicalArticles/javame/json-me/ you can look through.
The Enterprise server shouldn't affect your ability to use this, as you're essentially making the same calls a browser would, and it will know how to route that traffic.