BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-10-2008, 11:37 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default pass parameters to web service with ksoap

Please Login to Remove!

Hi

I have the next code:

HttpTransport transport = null;
SoapObject soap = new SoapObject("http://tempuri.org/","Validarusuario");

soap.addProperty("usuario","1");
soap.addProperty("password","1");
transport = new HttpTransport();
transport.setUrl("http://100.1.1.126/WebService/service.asmx");
transport.setSoapAction("http://tempuri.org/Validarusuario");
transport.debug = false;
Object o = transport.call(soap);

StringItem item = new StringItem("Resultado: ", o.toString());
formulario.append(item);


I am using the instruction soap.addProperty("usuario","1"); to pass parametos to my web service, by this don't goes, why? are there another way to pass parametos to my web service?

Thanks, Oscar
Offline  
Old 04-15-2008, 09:16 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hum I think the problem is with "1".

Try to remplcae it by String.valueOf(1).
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

HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$163.99
HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC - VINTAGE CAR,BIKES, JEEP
$222.99
HSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC - VINTAGE CAR,BIKES, JEEP pictureVintage Working Pelouze Model Y-5 Postal Scale Up To 7 Lb. Dec 31, 1975
$18.95
Vintage Working Pelouze Model Y-5 Postal Scale Up To  7 Lb. Dec 31, 1975   pictureHSS 10PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$153.0
HSS 10PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureDated DEC 1910, Vintage Brass ASHCROFT Pressure Gauge, Open Center, Steampunk
$49.99
Dated DEC 1910, Vintage Brass ASHCROFT Pressure Gauge, Open Center, Steampunk  picture






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