Last post Jul 21, 2009 09:21 PM by derianto
Jul 10, 2009 07:54 AMemail@example.com|LINK
I have an existing Http module which have a PreRequestHandlerExecuteHandler, which does some security checking for our application, and I tried to reuse the same for a new RESTful service project. I can use a starter kit "RequestInterceptor" for the same,
but I wanted to do this through the existing module so tried it out. But the problem is PreRequestHandlerExecute event is not getting fired for REST calls. but something I noted is that, if I were to have a BeginRequest event handler to do a "HttpContext.Current.RewritePath"
then it'll fire the PreRequestHandlerExecute. Does anyone have an explanation for this, or a better way to do it. my primary target is to use the existing PreRequestHandlerExecuteHandler" without changing it.
Jul 21, 2009 09:21 PM|derianto|LINK
Can you post some code that illustrates how PreRequestHandlerExecuteHandler works in your module, which doesn't quite fit with RequestInterceptor, to give us a better understanding of your scenario?
I'm not familiar with ASP.NET service but I'm backed up by the REST starter kit team who may be able to help you.