BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-22-2009, 08:15 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default About KSoap2 Namespace

Please Login to Remove!

Just wanted to share my experience with namespace definition of SoapObject.
There is well known (for some of you) site with some webservices
I used to test may BB application on (WebserviceX.NET :: XML Web Services solution provider)
Here is namespace for the Stock Quote:
PHP Code:
<GetQuote xmlns="http://www.webserviceX.NET/"
And here is for Country Details/GetCountryByCountryCode (from Other Web Services, p3.)
PHP Code:
<GetCountryByCountryCode xmlns="http://www.webserviceX.NET"
See the difference?
Put additional slash at the end of GetCountryByCountryCode and you'll have get
SoapFault related to input parameter:
PHP Code:
Procedure or function 'GetCountryByCountryCode' expects parameter '@CountryCode'which was not supplied
which is very confusing because in requestDump you see
PHP Code:
<CountryCode i:type="d:string">US</CountryCode
So guys, be very careful with these pesky namespaces

Last edited by koic : 06-22-2009 at 08:17 AM.
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





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