BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-04-2009, 12:29 PM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8310
PIN: N/A
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 ht.call 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");

ht.call(serviceNamespace + soapAction, envelope);
------------------------------
Offline  
Old 03-04-2009, 01:40 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is that an actual copy paste from your code??

If it is, then you might want to check the serviceUrl variable and change the url part of the string with the actual url of the webservices.

Besides, i don't see you adding the properties of the webmethod. Does the webmethod doens't require any kind of arguments???

Check your code with this little tutorial i posted yesterday

$25.00 for someone to show me how to connect to a .NET web service
Offline  
Old 03-05-2009, 02:16 PM   #3 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8310
PIN: N/A
Carrier: ?
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply, It was a malformed url...

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

SIWB60 600V 1A BRIDGE RECTIFIER DIP-8 REPL ECG5332, NTE5332
$2.99
SIWB60 600V 1A BRIDGE RECTIFIER DIP-8 REPL ECG5332, NTE5332   picture100pcs SR240 Schottky Barrier Rectifier Diode 2A 40V SMD DO-214AC SS24
$5.17
100pcs SR240 Schottky Barrier Rectifier Diode 2A 40V SMD DO-214AC SS24 picture250 pcs RL207 2A 1000V DO-15 Rectifiers Diode
$10.08
250 pcs RL207 2A 1000V DO-15 Rectifiers Diode picture1 Lot of 2000 Fast Rectifier Diode 1N4448. New parts
$20.0
1 Lot of 2000 Fast Rectifier Diode 1N4448.  New parts  pictureECG115 SELENIUM DUAL COM ANODE RECTIFIER DIODE REPL NTE115
$4.99
ECG115 SELENIUM DUAL COM ANODE RECTIFIER DIODE REPL NTE115 picture






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