开发者

Access Web Services on BlackBerry

What are the ways of accessing web services on a BlackBerry device?

I've learned about XML for webservices. We use SAX and DOM parsers in Blackberry. Are there any more ideas like this?

I also want to know what KSOAP is and how to use开发者_如何学JAVA it on BlackBerry.


AFAIK, kSOAP is a library that lets you post soap requests to your web service. If the service accepts a simple POST request, the easiest way would be to use HttpConnection. Here's a good tutorial

I've also used kXML2 for XML parsing, and that has worked out well for me till now.

Additionally, including 3rd party libraries is a pain (kSOAP and kXML), so here's a guide that will hopefully save you some time.


You can try http://wsclient.neurospeech.com/wsclient/java-android-blackberry/ which supports soap code generation for blackberry with additional library that manages everything, it generates native typed soap client and calling them is very easy. Otherwise you will be spending lot of time in xml to your types and types to xml conversions and so on. Plus date and many things are little complex to handle.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜