I have several methods that are able to successfully post predetermined string values to a separate web application, but I am stuck on how to capture and post data from an xml file.
I have a view that returns a file path to one of my controllers, but am stuck on how to get that data to my api controller. I can read the xml data into an XmlDocument as shown below, but from what I can tell, xmldocuments are not serializable.
XmlDocument doc = new XmlDocument();
doc.Load(@"dummyfilepath/" + FileName);
How can I get this xml data into my api controller to pass it as a parameter?
thanks!