[Mono-list] HttpContext in asp.net and webservice

Robert Jordan robertj at gmx.net
Thu Mar 20 11:29:14 EDT 2008


Peter Hagen wrote:
> Now I'm creating a webservice, and I want to do the same kind of 
> construction. But when I test HttpContext.Current.Handler for the 
> iCmsConnectionHandler it returns false. The handler is the type:
> 
> System.Web.Services.Protocols.HttpSoapWebServiceHandler
> 
> Is there a way to get a reference to my webservice object throught the 
> HttpContext object? or in any other way?
> 
> Also, I checked the mono docs, but I can't find the 
> HttpSoapWebServiceHandler anywhere.

As this is an internal class, you won't be able to get the instance
of the current web service from it.

I'm not aware of any other ways to obtain the current web service
instance other than from the WS itself.

Robert



More information about the Mono-list mailing list