SOAP question

L

lallous

Hello,

I am new to webservices internals and I used the web service wizard to
generate the webservice class and appropriate objects.

After issueing a request, I noticed that the SOAP message goes like
the
following format (example):

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<read href="http://localhost/something/"
xmlns="http://test.org/ns/wsdl/1.0">
<str name="Switch" />
</read>
</soap:Body>
</soap:Envelope>

But, how can I have the request sent with the following format:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSche
ma-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Header />
<SOAP-ENV:Body>
<read href="http://localhost/something/">
<str name="Switch" xmlns="http://test.org/ns/schema/1.0"/>
</read>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Notice the difference between: <soap:Body> and <SOAP-Env:Body> for
example.

Please advise.
 
M

Mr. Arnold

lallous said:
Hello,

I am new to webservices internals and I used the web service wizard to
generate the webservice class and appropriate objects.

After issueing a request, I noticed that the SOAP message goes like
the
following format (example):

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<read href="http://localhost/something/"
xmlns="http://test.org/ns/wsdl/1.0">
<str name="Switch" />
</read>
</soap:Body>
</soap:Envelope>

But, how can I have the request sent with the following format:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSche
ma-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Header />
<SOAP-ENV:Body>
<read href="http://localhost/something/">
<str name="Switch" xmlns="http://test.org/ns/schema/1.0"/>
</read>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Notice the difference between: <soap:Body> and <SOAP-Env:Body> for
example.

Please advise.

MS.Public.dotnet.webservices is where you can get some help, if no one
answers you questions here.
 
N

Nicholas Paldino [.NET/C# MVP]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top