Re: Send XML without SOAPEnvelope wrapper?

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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


.



Relevant Pages

  • Re: Sending an XML file to web service
    ... > public XmlDocument ParseXmlDocument(XmlDocument xdoc) ... I would> like to compose the shopping cart as an XML file send it directly to a> webservices. ... How can I send and consume an XML file using a web service? ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How to return .xml file from web service
    ... .xml file, now I want to pass this file to client... ... The web service is the 'passive' part and the client the 'active' part. ... your service only responds to incoming requests from ...
    (comp.text.xml)
  • Re: How to return .xml file from web service
    ... .xml file, now I want to pass this file to client... ... The web service is the 'passive' part and the client the 'active' part. ... your service only responds to incoming requests from ...
    (comp.text.xml)
  • xml data connection in Web Services
    ... I'm trying to develop a web service to expose an XML file for product ... manufacturers for a client application to consume and populate a ... Dim myDataSet As New DataSet ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Authenticate to a Web Service
    ... Short answer you don't have a security header in your request. ... I have to interact with a Web Service exposed by a partner organisation. ... and the 'HEI Course Web Service User' values into the optional third ...
    (microsoft.public.dotnet.framework.aspnet.webservices)