Thread: Web Service
View Single Post
Old 05-09-2008, 05:37 AM   #2 (permalink)
New Member
Join Date: Apr 2008
Location: Pune, India
Model: 8830
Carrier: Sprint
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Avoid ksoap2

Had spent time importing ksoap2 classes, then sources in my project in order to access web services. Doing it manually is a mess, you dont need to do that anymore.

Download the ksoap2 j2me jar (ksoap2-j2me-core-2.1.2.jar) from the following location:
UK Mirror Service: sites/

Make sure that you preverify it before you put it to use.
Preverification on the jar is done by using preverify.exe in your BlackBerry JDE bin folder.


Coming to the main point: You can totally avoid using ksoap2. Why increase the footprint of your application by using 3rd party libraries when you can do away with them altogether?

Using RIM classes like HttpConnection and InputStream/OutputStream, you can query a web service and get/post data.

There is a thread on this forum which has code that will help you achieve this. Just search for "HttpConnection" and you should be able to find that.

Hope this helps.
Offline   Reply With Quote