Receive Post Request .NET 3.5
I'm working with a 3rd party to receive a post request in XML format. Here is what their instructions say will be posted to a
URL I provide. How do I receive this data?
I've done posting to aspx pages with POST before but I get data out of the form like this in the Page_Load.
Request.Form("itemname").
How will I receive the content when it is sent this way? Any help would be great! Thx.
POST / HTTP/1.1
Connection: close
User-Agent: CustomCo.com
Host: www.customco.com
Content-Length: 450
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<output>xxxxx</outputdata>
Re: Receive Post Request .NET 3.5
You could best create a WCF service or a webmethode. Try bing.com for some info
Re: Receive Post Request .NET 3.5
Have a look at this link, you should be able to get the input stream the same way (second section) then use xml objects to do what you need.
http://www.codeproject.com/Articles/...T-Page-using-C