Could someone supply a working code example of where a C# console app passes a XmlDocument type to a webservice, then the webservice use the data inside the XmlDocument for insertion to SQL Server table?
Please refer below link
http://stackoverflow.com/questions/4896213/passing-xml-document-as-an-parameter-to-web-services-in-c-sharp
also you can pass path as parameter an load it on service side like below
C#
[WebMethod] public void WriteXMLData(string path) { XmlDocument doc = new XmlDocument(); doc.Load(path); //PARSE XML AND INSERTS TO SQL TABLE GOES HERE }
I hope this will help you out.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.