I have a WCF Service application, in which I have some Rest Services and some conventional WCF services.
I have added a HttpModule to intercept the service calls to the Rest service and verify the token in the request header and allow access to the service. This works fine for my Rest services.
When I make call to the WCF service, it goes to the HTTPModule and then I get the exception at the client side "The remote server returned an unexpected response: (400) Bad Request."
How do I make sure that my HttpModule is only invoked for Rest services, but not for my WCF Soap services.