|
-
Sep 4th, 2012, 11:52 AM
#1
Thread Starter
Fanatic Member
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>
-
Sep 7th, 2012, 02:43 PM
#2
Re: Receive Post Request .NET 3.5
You could best create a WCF service or a webmethode. Try bing.com for some info
-
Sep 9th, 2012, 07:26 PM
#3
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
The problem with computers is their nature is pure logic. Just once I'd like my computer to do something deluded. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|