Ah, ok. I was just offering that as a non-IIS/ASP.NET approach as an idea.
So if you are using ASP.NET, then yes, implementing a IHttpHandler would
probabaly be your best bet. They're quite simple once you get started.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> thanks.
>
[quoted text clipped - 56 lines]
>>> isn't there a sim[ple way to do it? I keep reading about HTTP
>>> handlers. isn't there a simpler way to implement it?
thanks again!
assuming I have a page, "/dir1/mypage.aspx" that will implement the handler.
I understand I need to declare the public class that will implement the
handler
Public Class MyHandler
Implements IHttpHandler
and implement "IsReusable" and "ProcessRequest"
now, what exactly do I need to do on my web.configto make the handler
receive the requests to mypage.aspx? or does it does it have to be
machine.config? anything else I am missing?
all the examples I saw assume so much besides the basic HTTP handling its
hard to differenciate the "pure" HTTP handler.
> Ah, ok. I was just offering that as a non-IIS/ASP.NET approach as an idea.
> So if you are using ASP.NET, then yes, implementing a IHttpHandler would
[quoted text clipped - 64 lines]
> >>> isn't there a sim[ple way to do it? I keep reading about HTTP
> >>> handlers. isn't there a simpler way to implement it?
Brock Allen - 18 Jul 2005 21:22 GMT
Just add a <httpHandlers> section to your web.config:
<configuration>
<system.web>
<httpHandlers>
<add path="YourURL.aspx" verb="POST" type="YourNamespace.YourClass, YourAssemblyWithoutTheDotDll"
/>
</httpHandlers>
</system.web>
</configuration>
For the verb I'd use POST since you said the client would be passing up XML
in the body. You can just put verb="*" if they might also do a GET.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> thanks again!
>
[quoted text clipped - 84 lines]
>>>>> isn't there a sim[ple way to do it? I keep reading about HTTP
>>>>> handlers. isn't there a simpler way to implement it?
Jerome Cohen - 18 Jul 2005 21:25 GMT
its working!
> Just add a <httpHandlers> section to your web.config:
>
[quoted text clipped - 102 lines]
> >>>>> isn't there a sim[ple way to do it? I keep reading about HTTP
> >>>>> handlers. isn't there a simpler way to implement it?