I have to build a process that will receive a http request from a sender with a XML content type. What I need to do is receive the request and do some actions once I receive the request, such as writing the data that is encoded in the request into a database.
Synopsis:
A sender is going to send a request to my process, what I expect in it will be the process's server URL, and Authentication info such as username and password, and some data such as a first and last name, D.O.B and Email address. My process will read the
XML and insert the data into a database and send an email to the email address within the data portion of the request.
Where do I start? Do I build a simple HTTP server. I have always been the one to be sending a request via http web request and getting a response. This time I have to be the one receiving the request and then doing something with it.
cali4life
Member
8 Points
23 Posts
How to create a Server process to receive http requests
Dec 08, 2012 06:33 PM|LINK
I have to build a process that will receive a http request from a sender with a XML content type. What I need to do is receive the request and do some actions once I receive the request, such as writing the data that is encoded in the request into a database.
Synopsis:
A sender is going to send a request to my process, what I expect in it will be the process's server URL, and Authentication info such as username and password, and some data such as a first and last name, D.O.B and Email address. My process will read the XML and insert the data into a database and send an email to the email address within the data portion of the request.
Where do I start? Do I build a simple HTTP server. I have always been the one to be sending a request via http web request and getting a response. This time I have to be the one receiving the request and then doing something with it.
BrockAllen
All-Star
27524 Points
4902 Posts
MVP
Re: How to create a Server process to receive http requests
Dec 08, 2012 07:48 PM|LINK
I'd suggest looking into using WebAPI as the http framework and you can do self-hosting (without IIS). Start learning here:
http://www.asp.net/web-api
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
cali4life
Member
8 Points
23 Posts
Re: How to create a Server process to receive http requests
Dec 08, 2012 08:55 PM|LINK
Is there anything that does not use satan's programming platform language "MVC"?
BrockAllen
All-Star
27524 Points
4902 Posts
MVP
Re: How to create a Server process to receive http requests
Dec 08, 2012 09:17 PM|LINK
Well, I have no idea what you're talking about, but your tone doesn't help you in any way.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
cali4life
Member
8 Points
23 Posts
Re: How to create a Server process to receive http requests
Dec 08, 2012 09:54 PM|LINK
PLEASE NO MVC!!!