Results 1 to 3 of 3

Thread: Receive Post Request .NET 3.5

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    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>

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Receive Post Request .NET 3.5

    You could best create a WCF service or a webmethode. Try bing.com for some info
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    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
  •  



Click Here to Expand Forum to Full Width