BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-18-2008, 07:07 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 ksoap2

Please Login to Remove!

Hi

I want to save the result of web service with ksoap in a inputstream, how can i do it?

this is my code for save the result in an Stringitem.

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

soap.addProperty("usuario", "2");
soap.addProperty("password", "1");

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
envelope.bodyOut = soap;
envelope.dotNet = true;

transport = new HttpTransport("http://100.1.1.126/WebService/service.asmx");
transport.debug = true;
transport.call("http://tempuri.org/Validarusuario", envelope);

StringItem item = new StringItem("Resultado: ", envelope.getResult().toString());
formulario.append(item);
} catch (Exception e) {
formulario.append(e.toString());
e.printStackTrace();
}

Thanks, Oscar
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

NEW IN PACKAGE, ARCHER POTENTIOMETER, 500K OHMS, AUDIO TAPER, PN:271-1723
$9.5
NEW IN PACKAGE, ARCHER POTENTIOMETER, 500K OHMS, AUDIO TAPER, PN:271-1723 pictureUxcell a15011600ux0214 5 Piece 5K Ohm Linear Taper Rotary Potentiometer, 5KB B5K
$7.73
Uxcell a15011600ux0214 5 Piece 5K Ohm Linear Taper Rotary Potentiometer, 5KB B5K picture3Pcs 20K Ohm B20k Knurled Shaft Linear Rotary Taper Potentiometer Ic New U
$1.16
3Pcs 20K Ohm B20k Knurled Shaft Linear Rotary Taper Potentiometer Ic New U picture10 Pcs 6mm Shaft Hole Dia Plastic Threaded Knurled Potentiometer Knobs Caps DH
$1.18
10 Pcs 6mm Shaft Hole Dia Plastic Threaded Knurled Potentiometer Knobs Caps DH pictureIRC 1152455 40 OHMS 1-TURN POTENTIOMETER
$4.97
IRC 1152455 40 OHMS 1-TURN  POTENTIOMETER picture






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