BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-27-2007, 09:52 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: T-Mobile
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ksoap help needed

Please Login to Remove!

hi,

i want to use a webservice in my blackberry application. As some here in the forums suggest, ksoap2 is a way to do this. So i downloaded the jar-file (ksoap2_j2me_core-2.1.2.jar) from the projects web site.

then i had to preverify it, which i acomplished with the help of this blog: alberthuh.net Blog Archive External Jars for Blackberry Projects

it worked, but now i don't know, what to do with the new jar (same name).

please help, i am new to java and really have no idea...
Offline  
Old 11-27-2007, 12:31 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The way I do it is to create a BlackBerry library out of the pre-verified jar file, according to these instructions.. Then install the lib on your BB device, either independently or include it in your app's jad (which would look like "RIM-COD-Module-Dependencies: net_rim_cldc,ksoap2_j2me_core-2.1.2). This would be done by "importing" the ksoap lib into your app, which is accomplished in various ways depending on which dev environment you're using.

I think that's about the only BB-specific stuff you'll need to do; otherwise, just put the original jar in your Java classpath and develop away.
Offline  
Old 11-27-2007, 01:28 PM   #3 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

probably more simple ways to learn java then webservices/ksoap
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 11-28-2007, 09:23 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: T-Mobile
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by simon.hain View Post
probably more simple ways to learn java then webservices/ksoap
thats probably true, but thats how i got to do it, right now. i try to learn java parallel in my free time, though.

@richard.pucket: thank you, i will try it that way.
Offline  
Old 11-28-2007, 10:08 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: T-Mobile
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok, i followed the instructions in your link .

i followed the steps til the last one. now i have 2 projects in my workspace (mine and ksoap2). after making my project depend on the ksoap2 project a new parameter is added when i compile my project (->-quiet import=ksoap2.jar;)

i can import the classes in the ksoap2.jar, now.

Thanks again

Last edited by zimmi : 11-28-2007 at 10:12 AM.
Offline  




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