List Info

Thread: Receiving an http post.




Receiving an http post.
country flaguser name
United States
2008-07-08 08:43:35
I've got a 3rd party system that can be configured to post
XML files via
http posts.

This sort of thing is a bit over my head. How do I receive
an http post?

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Receiving an http post.
user name
2008-07-08 08:56:02
How about setup an HttpHandler which handles the post.

// Ryan

On Tue, Jul 8, 2008 at 3:43 PM, Mark Nicholls
<Nicholls.Markmtvne.com> wrote:
> I've got a 3rd party system that can be configured to
post XML files via
> http posts.
>
> This sort of thing is a bit over my head. How do I
receive an http post?
>
> ===================================
> This list is hosted by DevelopMentor(R)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Receiving an http post.
user name
2008-07-08 08:51:25
The posted data will be on the Request - try something
like:

protected void Page_Load(object sender, EventArgs e)

{

XmlDocument incomingXML = new XmlDocument();

incomingXML.Load(Request.InputStream);
...
}

On Tue, Jul 8, 2008 at 8:43 AM, Mark Nicholls
<Nicholls.Markmtvne.com>
wrote:

> I've got a 3rd party system that can be configured to
post XML files via
> http posts.
>
> This sort of thing is a bit over my head. How do I
receive an http post?
>
> ===================================
> This list is hosted by DevelopMentor(R)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Receiving an http post.
country flaguser name
South Africa
2008-07-08 09:08:33
An HttpHandler is probably the correct way to go.

However a quicker way to see if it will work is to create a
standard ASP.Net
website / project, and to create a normal ASPX page.

>From here you should be able to access data sent to the
page as POST data
like this:

Request["SomeFieldName"];


If you don't know what field name the 3rd party app is
sending the data as,
you can loop through the Request.Form.Keys collection to see
if any of them
look like the one you want.

--Daniel.

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Ryan
Heath
Sent: 08 July 2008 03:56 PM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Receiving an http post.

How about setup an HttpHandler which handles the post.

// Ryan

On Tue, Jul 8, 2008 at 3:43 PM, Mark Nicholls
<Nicholls.Markmtvne.com>
wrote:
> I've got a 3rd party system that can be configured to
post XML files via
> http posts.
>
> This sort of thing is a bit over my head. How do I
receive an http post?
>
> ===================================
> This list is hosted by DevelopMentor(R)  http://www.develop.com
>
> View archives and manage your subscription(s) at
http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )