09-03-2008 04:50 AM
Newbie here and was wondering if someone could point me in the right direction of writing a class to connect to a webservice? I'm using Blackberry JDE plugin for Eclipse. I've tried searching through some forums but most is to do with ksoap plugin which i'm having difficulty with so thought i'd write my own class. Any papers, samples etc. would be much appreciated.
Tried to search through blackberrys developer section but to be honest i find the site awful and can never find what i'm looking for!
Solved! Go to Solution.
09-03-2008 06:09 AM - edited 09-03-2008 06:11 AM
09-04-2008 03:53 AM
Thanks rafo. I'm currently using Eclipse with the Blackberry plugin and I don't really want to use the MDS Studio, is it possible to connect to a webservice without using this?
09-04-2008 04:01 AM - edited 09-04-2008 04:02 AM
As far as I know there is no JSR172 support in RIM API.
In this case you need to prepare manually request and also manually parse response xml.
Try to use j2me xml libs like kSOAP
09-04-2008 04:08 AM
I've tried using ksoap and i'm getting an error about files missing inside the jar file.
Do you know if it is worth manually writing requests and parsing the response or is it too much work? Do you know where i can find some guides/hints/samples of this?
Sorry for asking so much but i am struggling to find much information on developing on Blackberry.
09-04-2008 04:15 AM - edited 09-04-2008 04:17 AM
09-04-2008 07:04 AM
I have developed a small application based on the webservices, by following these steps...
1. Created a webservice and published.
2. By using the SUN J2ME Wireless Toolkit, point the wsdl file and generate stubs..
3. After generating the stubs, import the classes into u r project and access like a simple java classes..
please correct me, if i am wrong...
09-04-2008 07:08 AM - edited 09-04-2008 07:11 AM
Check the following link for an example: Calling .NET WebService from BlackBerry With kSOAP2
There is a report for an error, but the approach is correct.
Also check this link