Basichttp Binding For
/ Comments off
Hi
We are having a WCF which should use basicHttpBinding but expose the service as a secured service [https].
We have the following configuration setting:
<basicHttpBinding>
<binding name='myBinding' '>
<security mode='Transport'>
<transport clientCredentialType='None' />
</security>
</binding>
</basicHttpBinding>
----
<behaviors>
<serviceBehaviors>
<behavior name='SFBehavior'>
<serviceMetadata httpsGetEnabled='true' httpGetEnabled='true' />
</behavior>
</serviceBehaviors>
</behaviors>
This setting throws error message: 'The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via'
Please can somone be able to help on this?
Masil
After a little struggle I found that basicHttpBinding's windows authentication is not supported by IIS 6.0. Instead security mode of the binding should be set to Ntlm and you have to allow anonymous authentication in the IIS site settings. Here is the complete config file.
We are having a WCF which should use basicHttpBinding but expose the service as a secured service [https].
We have the following configuration setting:
<basicHttpBinding>
<binding name='myBinding' '>
Basichttp Binding For Dummies
<security mode='Transport'>
<transport clientCredentialType='None' />
</security>
</binding>
</basicHttpBinding>
----
<behaviors>
<serviceBehaviors>
<behavior name='SFBehavior'>
<serviceMetadata httpsGetEnabled='true' httpGetEnabled='true' />
</behavior>
</serviceBehaviors>
</behaviors>
This setting throws error message: 'The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via'
Please can somone be able to help on this?
Masil