BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-14-2007, 02:12 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to call a webservice in Blackberry JDE application

Please Login to Remove!

HI


Does anyone know how to call a web service from a BB JDE application. Please help me wit a sample code...


thanks...
Offline  
Old 11-14-2007, 03:31 AM   #2 (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

for beginners i always suggest using ksoap2 as it handles most things for you.
a call would look like:

Code:
public String login(String username, String password) throws Exception {
		SoapObject soapObject = getSoapObject("login");
		soapObject.addProperty("arg0", username);
		soapObject.addProperty("arg1", password);

SoapSerializationEnvelope envelope = getEnvelope(soapObject);
        transport.call("urn:anonOutInOp", envelope);
        String response = envelope.getResponse().toString();        
        return response;
	}
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 11-14-2007, 03:54 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you simon
Offline  
Old 11-14-2007, 06:08 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank u very much once again for ur reply ... but since im very new in java i donot know how to add the ksoap ... (unable to import the ksoap) ... plz help

thnk u..

Last edited by BB1364 : 11-14-2007 at 06:25 AM.
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

Yamaha KJO-M4210-012, KJO-M4200-012 Sys Bd, KJO-M4220-101 Appl Board, 36Mb RAM
$150.0
Yamaha KJO-M4210-012, KJO-M4200-012 Sys Bd, KJO-M4220-101 Appl Board, 36Mb RAM pictureRadiant P1220 12" Touchscreen POS Terminal, Celeron M 800MHz, 2GB RAM
$99.0
Radiant P1220  12Packeteer 2500 Series, 566 Celeron, 20GB HDD, 512MB RAM, 64MB CF, Ver. 8.2.5
$149.99
Packeteer 2500 Series, 566 Celeron, 20GB HDD, 512MB RAM, 64MB CF, Ver. 8.2.5 pictureNEW OEM RICOH REFILL STAPLE TYPE K 410802 NO. 502R-AM
$20.0
NEW OEM RICOH REFILL STAPLE TYPE K  410802  NO. 502R-AM pictureToshiba ST-A20-T57K-QM-R POS Intel Core 2 Duo 2.16GHz 3GB RAM 160GB HDD Win 10
$799.99
Toshiba ST-A20-T57K-QM-R POS Intel Core 2 Duo 2.16GHz 3GB RAM 160GB HDD Win 10 picture






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