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

Western Construction News Magazine Dec. 1939 Vintage Caterpillar Letourneau Ads
$14.99
Western Construction News Magazine Dec. 1939 Vintage Caterpillar Letourneau Ads  pictureVintage Sheet Metal Worker’s Monthly magazine Dec.1940
$8.5
Vintage Sheet Metal Worker’s  Monthly magazine Dec.1940  pictureVintage PELOUZE Petite POSTAL SCALE Model P-1 Rates Effective Dec 31, 1976 NEAT
$11.11
Vintage PELOUZE Petite POSTAL SCALE Model P-1 Rates Effective Dec 31, 1976 NEAT pictureVintage Graton & Knight Co. Lineman's Belt Dec 1953 Belt Climbing Harness Strap
$33.99
Vintage Graton & Knight Co. Lineman's Belt Dec 1953 Belt Climbing Harness Strap pictureVintage Digital DEC M3106 Line SYNC MUX Board
$29.99
Vintage Digital DEC M3106 Line SYNC MUX Board picture






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