Re: Send XML without SOAPEnvelope wrapper?
- From: "John Saunders" <john.saunders at trizetto.com>
- Date: Sat, 28 Oct 2006 06:47:03 -0400
"rhea" <rhea@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:82A81BC7-94C4-4BCA-ACE7-8F7D6DD382E5@xxxxxxxxxxxxxxxx
I'm a Web Services newbie and I'm hoping some more experienced developers
can
help me out.
I've written a .NET 2.0 web service that takes an XML file as input. The
SOAP envelope is pre-defined within the XML document.
That's a very bad idea. As the name suggests, the envelope is wrapped around
the "message". It contains things like addressing information, routing
information, etc. The envelope is part of the protocol, not part of the data
transferred by the protocol.
If there are particular elements which your application requires to be in
the header, then you need to put them there by defining them in your web
service class as [SoapHeader] fields. But you can't just send out pre-canned
headers and cause no others to be placed in the output. \
John
.
- Prev by Date: Compact framework woes
- Next by Date: Re: how to set restriction attributes in wsdl file?
- Previous by thread: Compact framework woes
- Next by thread: Re: how to set restriction attributes in wsdl file?
- Index(es):
Relevant Pages
|