471,337 Members | 1,174 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Get IHttpHandler in WCF service

Hello,

I want to get the IHttpHandler from a svc service.
With old asmx webservices, I get it using
WebServiceHandlerFactory.GetHandler .

How can I get IHttpHandler in WCF running in serviceHostingEnvironment :
aspNetCompatibilityEnabled="true" ?

Thanks in advance for your help.
Jun 27 '08 #1
3 1872
OK; *why* do you want the handler? What do you want to do?

Most things you can do by looking at the WCF pipeline ("inspectors",
etc). Yes, cmopatibility mode is an option, but I wouldn't use it
unless I had to - WCF doesn't always run over http or via ASP.NET...

Marc
Jun 27 '08 #2
Marc,

I only want to get the Handler as I was doing in an old asmx webservice.
Jun 27 '08 #3
I only want to get the Handler as I was doing in an old asmx webservice.

Yes... but why; what do you want to do with the handler? The point is
that there may be different (but more than adequate) ways of doing
this with WCF. Quite simply, WCF isn't actually part of the ASP.NET
pipeline, and handlers are an ASP.NET feature. If you happen to be
running in ASP.NET, you *might* be able to get the handler (not sure)
via compatibility mode, but I would still consider this a hacky
solution, and it adds unnecessary overhead (the ASP.NET shims) to the
WCF stack.

So if you can tell me what you actually want to do, I might be able to
suggest an appropriate WCF way to do this...

Marc
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by lapin | last post: by
1 post views Thread by lapin | last post: by
5 posts views Thread by vimakefile | last post: by
reply views Thread by Stu | last post: by
24 posts views Thread by John Rivers | last post: by
1 post views Thread by =?Utf-8?B?QWxwaGFwYWdl?= | last post: by
reply views Thread by shapper | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.