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
| 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
| |