Microsoft
Software
Hardware
Network
Question : ASP.NET web service load xml
I am new to XML and web services so thank you for your patience.
I am working in VS 2008, VB.NET.
I have created a web service that loads a local XML file, parses values from the XML file and saves them to a SQL server. I would now like to test the web service with XML being posted to it, as it will be when it is live.
I would like for you to help me with two things:
The code required to load the XML posted to the website
Recommend a program that will simulate XML being posted to my web service ( I found webinject but I don't know if there are better tools out there)
My current code for loading the local XML file is :
1: 2:
doc = New XmlDocument() doc.Load(Server.MapPath("~/") & "XMLPost.xml")
Thank you for your help
Answer : ASP.NET web service load xml
When you say 'receiving XML from HTTP post', I'm assuming that the contents of the xml will come in as a string.
If that's the case, try:
doc.LoadXml(strPOXMLDa
ta)
Arun
Random Solutions
Running the System Update readiness tool.
Searching in Windows 7 Ultimate and Wind 2008 Server how do I search accurately?
Giving permission for stream writer to write in C:/ drive
Cisco "Do wr" does not work in "conf t" mode or any other sub-mode
Motherboard driver CD for HCL - P5GD2-TVM/GB/SI
Login control design and Programming
iphone saying can't connect to server on Exchange 2010 account...
Terminal Server client side CD/DVD writing
Sharing Methods Between Applications on the Same Server
Integrating projects