Groups | Blog | Home
all groups > dotnet xml > january 2005 >

dotnet xml : XML / SOAP - NameSpace


c.bouev NO[at]SPAM red.fr
1/18/2005 2:58:48 AM
Hi everybody,

I'm stuck in some SOAP webservices running on an IBM mainframe,
connecting to them from a .NET application (WinForm).

The SOAP server does understand differently the two following SOAP
messages extracts (calling the getQuote method) :

<ns:getQuote xmlns:ns="urn:iessoapd:pgm">
....
</ns:getQuote>

*and*

<getQuote xmlns="urn:iessoapd:pgm">
....
</getQuote>

My question is : are these two notations equivalent ?
As a matter of fact, the first code works, the second one calls an
amazing error on the server (HTTP 204 : no Content).

Thanx for your help.

Christoph Schittko [MVP]
1/18/2005 9:39:52 PM
Yes, the two notations are identical - from an XML InfoSet point of
view.

What do the bodies of the getQuotes element look like?

Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko


[quoted text, click to view]
Chris
1/19/2005 1:49:03 AM
Thanx for your response Christoph.

The bodies are quite simple and do not require any namespace.

(Working)
<ns:getQuote xmlns:ns="urn:iessoapd:pgm">
<Symbol xsi:type="xsd:string">Value</Symbol>
</ns:getQuote>

and

(Not Working)
<getQuote xmlns="urn:iessoapd:pgm">
<Symbol xsi:type="xsd:string">Value</Symbol>
</getQuote>

I tried in the second message (not working) to undeclare the parent
namespace (<Symbol xsi:type="xsd:string" xmlns="">Value</Symbol>) but it did
not change anything.

Thanx again !


[quoted text, click to view]
AddThis Social Bookmark Button