BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-04-2009, 12:29 PM   #1
Tenshin
New Member
 
Join Date: Mar 2009
Model: 8310
PIN: N/A
Carrier: ¿?
Posts: 3
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
CJLopez
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
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

http://www.blackberryforums.com/deve...ml#post1306812
Offline  
Old 03-05-2009, 02:16 PM   #3
Tenshin
New Member
 
Join Date: Mar 2009
Model: 8310
PIN: N/A
Carrier: ¿?
Posts: 3
Default

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

Regards.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


US Stock 10 Units 10K B10K OHM Linear Taper Rotary Potentiometer POT Blue Knob picture

US Stock 10 Units 10K B10K OHM Linear Taper Rotary Potentiometer POT Blue Knob

$9.39



US Stock 10pcs 50K ohm Linear Taper Rotary Potentiometer Panel pot B50K 20mm picture

US Stock 10pcs 50K ohm Linear Taper Rotary Potentiometer Panel pot B50K 20mm

$12.21



10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT picture

10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT

$51.49



10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob picture

10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob

$9.08



25~500W 1~1KOHM High Power Wirewound Potentiometer Rheostat Variable Resistor picture

25~500W 1~1KOHM High Power Wirewound Potentiometer Rheostat Variable Resistor

$28.86



US Stock 10 Units 100K B100K OHM Linear Taper Rotary Potentiometer POT Red Knob picture

US Stock 10 Units 100K B100K OHM Linear Taper Rotary Potentiometer POT Red Knob

$9.49







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