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
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ksoap2

Please Login to Remove!


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("","Validarusuario");

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

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

transport = new HttpTransport("");
transport.debug = true;"", envelope);

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

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

MSA Altair H2S Monitor
MSA Altair H2S Monitor pictureMSA Altair 5X Multi-Gas Detector
MSA Altair 5X Multi-Gas Detector pictureLot 5 Altair AL-2665T Indoor 3" 45° Directional Recessed Lights 2-Pack White 50W
Lot 5 Altair AL-2665T Indoor 3Msa Altair 5 Battery
Msa Altair 5 Battery pictureMsa Altair 4x Wall Charger With Multiple Outlet Attachments
Msa Altair 4x Wall Charger With Multiple Outlet Attachments picture

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