| Author: Abhishek Arya 12 Jul 2006 | Member Level: Diamond | Rating:  Points: 2 |
use this kb for the same
http://www.dotnetspider.com/kb/Article2065.aspx
|
| Author: MOHAN BABU DODDAPANENI 17 Dec 2008 | Member Level: Silver | Rating:  Points: 5 |
Two different ways of doing it
1) If the web service is internal (intranet) - Have the web method that takes the location of the file. But this should be a shared location with appropriate permissions on the location. Once it is available, inside the web method XmlDocument can be created using the file Path. Use XmlDocument.Load(string xmlPath) method;
2) If the web service is exposed outside, have a web method that’s take string as parameter. a. When consuming the web method in the client app, read content of the xml file and send it to web method b. Inside the web method, load the input string as XmlDocument using XmlDodument.LoadXml (string xml) methog and if loading fails it means the xml is not in the proper format
Once the xml document is loaded then its as good as parsing the xml.
I would suggest to use the option 2.
Njoy!! .Mohan
|