my english isn't very well, so i try my best.
We wrote different applications for different BlackBerry types.
In the applications we call web services from a .NET and a Domino Server and for this we are using kSoap2.0.
By testing an developing the applications often errors accoured, which mostly appears in the kSoap classes and which are only can be solved by adjusting the kSoap classes.
I searched for other possibilities but i didn't find anything.
So can someone help me to find a better way accessing and parsing web services?
Are the other API's or Soap-Clients that can be used in applications?
Thank you for your help
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/download.sourceforge.net/pub/sourceforge/k/ks/ksoap2
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.
First, Thank yo very much for your Reply.
I read the Documentation of HTTPConnection and I think I can use it but the Web Services I call base upon XML, so I have to write my own parser and that's the point I want to avoid.
The advantage of kSoap is that it has a parser for the Replies of the Web Services that I can use.
I will try out the jar file of the Link you posed an I hope it will be helpfull.
If XML parsing is your only concern, then you could use standard XML parsers that can parse the response of your web service. kxml2 (part of the ksoap2 suite) would serve your purpose. kxml2 doesnt have a large footprint.
|All times are GMT -5. The time now is 09:35 AM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.