Connecting Tech Pros Worldwide Forums | Help | Site Map

XML / SOAP - NameSpace

Chris
Guest
 
Posts: n/a
#1: Nov 12 '05
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.

Chris
Christoph Schittko [MVP]
Guest
 
Posts: n/a
#2: Nov 12 '05

re: XML / SOAP - NameSpace


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

[color=blue]
> -----Original Message-----
> From: Chris [mailto:c.bouev@red.fr]
> Posted At: Tuesday, January 18, 2005 4:59 AM
> Posted To: microsoft.public.dotnet.xml
> Conversation: XML / SOAP - NameSpace
> Subject: XML / SOAP - NameSpace
>
> 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.
>
> Chris[/color]

Chris
Guest
 
Posts: n/a
#3: Nov 12 '05

re: XML / SOAP - NameSpace


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 !


"Christoph Schittko [MVP]" wrote:
[color=blue]
> 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
>
>[color=green]
> > -----Original Message-----
> > From: Chris [mailto:c.bouev@red.fr]
> > Posted At: Tuesday, January 18, 2005 4:59 AM
> > Posted To: microsoft.public.dotnet.xml
> > Conversation: XML / SOAP - NameSpace
> > Subject: XML / SOAP - NameSpace
> >
> > 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.
> >
> > Chris[/color]
>
>[/color]
Closed Thread