BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-09-2008, 02:09 AM   #1 (permalink)
New Member
 
Join Date: May 2008
Model: 7290
PIN: N/A
Carrier: 4.02
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Web Service

Please Login to Remove!

Hello together,

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

king regards
Stefan
Offline  
Old 05-09-2008, 06:37 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Location: Pune, India
Model: 8830
PIN: N/A
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/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.
Offline  
Old 05-14-2008, 02:08 AM   #3 (permalink)
New Member
 
Join Date: May 2008
Model: 7290
PIN: N/A
Carrier: 4.02
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Avoid ksoap2

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.
Offline  
Old 05-14-2008, 02:57 AM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Location: Pune, India
Model: 8830
PIN: N/A
Carrier: Sprint
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default kxml2?

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.

~Aniket
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.