08-16-2010 01:19 PM
Hello,
I would like to call a XML-RPC service from my Eclipse (BlackBerry plug-in) project. Where do I start?
Any samples or directions would be appreciated.
Thank you
08-20-2010 01:45 AM
Welcome.
There are two main things you'd need to know to accomplish what you'd like to do.
You need to know how to make a connection:
You need to know how to read XML. See the XMLDemo that comes packaged with your Eclipse installation.
If you have any more questions, post away.
08-20-2010 03:07 AM
There are two common approaches to use webservice in Blackberry.
1. Using the stubs using JSR 172. Read this for more J2ME Web Services
2. Using ksoap2 as a framework. kSoap -> http://ksoap2.sourceforge.net/
For stub generation method this might be usefull
http://www.ibm.com/developerworks/wireless/library
http://www.cs.wichita.edu/~chang/lecture/cs898t/pr
For ksoap this post might be usefull.
http://www.blackberryforums.com/developer-forum/14
http://www.blackberryforums.com/developer-forum/15
08-20-2010 11:34 AM
Thank you so much guys for providing those excellent links. I can't wait to get my hands dirty.
Does anyone have any recommendations on the two protocols, JSR 172 or ksoap2? What are the pro and cons of the two?
08-21-2010 05:35 AM
The kSOAP2 API is relatively simple to use, with a comprehensive serialization process.
Dealing with the JSR172 API is more difficult because it requires a solid knowledge about the Web Services domain, particularly the WSDL language. For example, it is very tedious to find the appropriate encoding style to use, as well as the XSD tags that have been restricted, such as the useful xsd:choice tag (unordered sequence of tags). Moreover, there exists some problems with list structure handling during unmarshalling of the server response with the JSR172.
08-21-2010 05:36 AM
The kSOAP2 API is relatively simple to use, with a comprehensive serialization process.
Dealing with the JSR172 API is more difficult because it requires a solid knowledge about the Web Services domain, particularly the WSDL language. For example, it is very tedious to find the appropriate encoding style to use, as well as the XSD tags that have been restricted, such as the useful xsd:choice tag (unordered sequence of tags). Moreover, there exists some problems with list structure handling during unmarshalling of the server response with the JSR172.