Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: consume XML document in web service

From: "Anthony Jones" <Ant@------------.--->
To: NULL
Date: 3/8/2008 9:16:00 PM

"Robert" <Robert@d...> wrote in message
news:78550B01-7821-4669-B9CB-5D7F0C20BF8E@m......
> I'm trying to pass an XML document into a web service using XMLHTTP.  I'm
> using the inputstream and would like to load that into the XML Document.
How
> can I do this?

I'm gonna guess this is in .NET but in would have been useful if you had
specified your platform.

You can use either XmlDocument or XPathDocument (XPathDocument is readonly
but uses less resources).

//C#
Using System.Xml
. . .
XmlDocument doc = new XmlDocument(Request.InputStream);

OR

Using System.Xml.XPath;
. . .
XPathDocument doc = new XPathDocument(Request.InputStream);


-- 
Anthony Jones - MVP ASP/ASP.NET




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent