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

2Pcs Eeprom Memorizer 16Kb Memory Chip Sop-8 24C16c-Sshm-T Surface Mount Ic Ne T
$0.99
2Pcs Eeprom Memorizer 16Kb Memory Chip Sop-8 24C16c-Sshm-T Surface Mount Ic Ne T pictureTantalum Capacitor S Smd 6032 16V 100Uf C Type 10% Surface Mount 10Pcs New Ic I
$3.57
Tantalum Capacitor S Smd 6032 16V 100Uf C Type 10% Surface Mount 10Pcs New Ic I picture1PCS TOSHIBA module MG15D4GM1
$31.99
1PCS TOSHIBA module MG15D4GM1 picture2Pcs Transistor Irf840 Mosfet New Ic N
$0.99
2Pcs Transistor Irf840 Mosfet New Ic N picture30Pcs To-92 Npn Low Noise Bc550 Transistor Ic New T
$1.16
30Pcs To-92 Npn Low Noise Bc550 Transistor Ic New T picture






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