View Single Post
Old 03-04-2009, 12:29 PM   #1 (permalink)
New Member
Join Date: Mar 2009
Model: 8310
Carrier: ?
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ksoap, HttpTransport call return null exception

Please Login to Remove!

I'm trying to call a webservice with that code, but throw an exception, where exception.getMessage returns null, and printStackTrace() "no stack trace"?, what is wrong? help please!!

String serviceUrl = "url/getcontacts";
String serviceNamespace = "url/";
String soapAction = "getContactsList";
String methodName = "getContactsList";

SoapObject rpc = new SoapObject(serviceNamespace, methodName);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = rpc;

HttpTransportBasicAuth ht = new HttpTransportBasicAuth(serviceUrl,"user","pass"); + soapAction, envelope);
Offline   Reply With Quote