BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-09-2008, 01:09 AM   #1
hurtz
New Member
 
Join Date: May 2008
Model: 7290
PIN: N/A
Carrier: 4.02
Posts: 3
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, 05:37 AM   #2
AniketAnikhindi
New Member
 
Join Date: Apr 2008
Location: Pune, India
Model: 8830
PIN: N/A
Carrier: Sprint
Posts: 12
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, 01:08 AM   #3
hurtz
New Member
 
Join Date: May 2008
Model: 7290
PIN: N/A
Carrier: 4.02
Posts: 3
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, 01:57 AM   #4
AniketAnikhindi
New Member
 
Join Date: Apr 2008
Location: Pune, India
Model: 8830
PIN: N/A
Carrier: Sprint
Posts: 12
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card picture

WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card

$129.00



NEW Mitsubishi A1SNMCA-8KE Memory Cassette picture

NEW Mitsubishi A1SNMCA-8KE Memory Cassette

$151.62



1PC NEW Memory card 2711-NM11 2711-NM11 SPOT STOCK picture

1PC NEW Memory card 2711-NM11 2711-NM11 SPOT STOCK

$367.22



1PC New ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card 1year waranty picture

1PC New ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card 1year waranty

$84.46



Argolladora We R Memory Keepers Heidi Swapp Cinch Binding Machine 71050-9 by AC picture

Argolladora We R Memory Keepers Heidi Swapp Cinch Binding Machine 71050-9 by AC

$79.99



WiFi Audio Voice Recorder Audio Alerts Check Audio Real-Time 32GB USA Shipper picture

WiFi Audio Voice Recorder Audio Alerts Check Audio Real-Time 32GB USA Shipper

$129.00







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