Deploying web service
Posted
by baron
on Stack Overflow
See other posts from Stack Overflow
or by baron
Published on 2010-05-20T05:36:42Z
Indexed on
2010/05/20
5:40 UTC
Read the original article
Hit count: 384
I am trying to build a webservice that manipulates http requests POST and GET.
Here is a sample:
public class CodebookHttpHandler: IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
if (context.Request.HttpMethod == "POST")
{
//DoHttpPostLogic();
}
else if (context.Request.HttpMethod == "GET")
{
//DoHttpGetLogic();
}
}
...
public void DoHttpPostLogic()
{
...
}
public void DoHttpGetLogic()
{
...
}
I need to deploy this but I am struggling how to start. Most online references show making a website, but really, all I want to do is respond when an HttpPost is sent. I don't know what to put in the website, just want that code to run.
Some links i've tried so far:
http://my.execpc.com/~gopalan/dotnet/webservices/webservice_server.html
http://www.beansoftware.com/asp.net-tutorials/deploy-asp.net.aspx
http://msdn.microsoft.com/en-us/library/6x71sze4%28VS.80%29.aspx
© Stack Overflow or respective owner