In the host web.config, include a binding like following and assign it to the service :
Note the "CustomBinding" below, and note the "None"s : security, proxyCredential, clientcredential. Also note that the binding is assigned using the bindingConfiguration attribute.
<system.serviceModel>
<bindings>
<wsHttpBinding >
<binding name="CustomBinding" >
<security mode="None">
<transport proxyCredentialType="None" clientCredentialType="None"></transport>
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="BusinessServiceLayer.LoginService">
<endpoint address="" binding="wsHttpBinding" contract="BusinessServiceLayer.ILoginService" bindingConfiguration="CustomBinding" >
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://RelayTrack_Services.retser.com/BusinessServiceLayer/LoginService/" />
</baseAddresses>
</host>
</service>
</services>
Note the "CustomBinding" below, and note the "None"s : security, proxyCredential, clientcredential. Also note that the binding is assigned using the bindingConfiguration attribute.
<system.serviceModel>
<bindings>
<wsHttpBinding >
<binding name="CustomBinding" >
<security mode="None">
<transport proxyCredentialType="None" clientCredentialType="None"></transport>
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="BusinessServiceLayer.LoginService">
<endpoint address="" binding="wsHttpBinding" contract="BusinessServiceLayer.ILoginService" bindingConfiguration="CustomBinding" >
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://RelayTrack_Services.retser.com/BusinessServiceLayer/LoginService/" />
</baseAddresses>
</host>
</service>
</services>
No comments:
Post a Comment