Click to See Complete Forum and Search --> : How to change Url of WebService which is consumed through HttpHandler


ireland
January 10th, 2008, 10:04 AM
My WebService is consumed through a HttpHandler i.e. my Webservices are contained HttpHandler classes which are compiled into a DLL which is registered with ASP.NET through the web.config.

This all works fine, whenever a .asmx file is requested from the Web application the request is handled by tge HttpHandler class and the webservice is invoke.
All works until I try to change the location of the web application in which I want to invoke the webservice. I used to do this when I had the Webservices add to the web app as Web References, by doing this I could change the Url of the Webservice at runtime by changing the Url property of the Webservice instance, but the HttpHandler no longer has a Url property or any of those Soap properties, how can I fix this?
I see the Url Property is contained in the SoapHttpClientProtocol class, this is usually provided for you by Visual Studio when you add the Web Reference, is this of any use to me? I've also looked at the disco.exe and wsdl.exe tools but they appear to be of no use to me.