RE: WCF basicHttpBinding

by "Prashant Brall on 1/29/2008 1:43:00 AM
> I have created a WCF Service with a basicHttpBinding. It is not easy for me
> to deploy a server certificate, so this is the reason I am using a
> basicHttpBinding..... with a simple username/password authentication, using
> the asp.net membership subsystem.
>
> I am hosting my WCF Service under IIS 6.0. I have three Http host bindings,
> and a single Https host bindings. After much searching on the Internet I
> concluded that I needed to write a Custom Host Factory, which is referenced
> from the WCF ".svc" file. The Custom Host Factory selects one of the Http
> host bindings and the single Https host binding and returns these two host
> bindings in the Custom Host Factory module.
>
> I was quite surprised that with its quite robust WCF architecture that I
> needed to write a Custom Host Factory for such a common network configuration.
>
> Am I way off base here ?.... are there any new WCF developments which make
> the Custom Host Factory no longer necessary ?
>
> --
> Philip

Hi Philip,
            I don't think so you need custom host factory. IIS 6.0 can easily host these webservices with and with out https.May be it is in your IIS configuration you have forced it to use https.

Otherwise from a browser you should be able to do something like this http://server/myservices/myservice.svc and https://server/myservices/myservice.svc and you should see the metadata page. If you get an error make sure you have mex binding ( metadata exchange) enabled and then you should be able to generate proxy from svcutil.exe utility.

I have deployed numerous WCF web services with https and http support at the same time and was able to generate proxy classes with out writing any hosting or host factory.

Can you describe in more details what are steps you are taking to deploy the web services.

Kind regards

Prashant Brall
PrashantBrall@hotmail.com

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities