<behaviors>
<serviceBehaviors>
<behavior name="WCFService.WCFServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<!--
using System.IdentityModel
-->
<bindings>
<wsHttpBinding>
<binding name ="WCFBindConfig">
<security mode ="None">
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="WCFService.WCFServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceCredentials>
<userNameAuthentication userNamePasswordValidationMode ="Custom" customUserNamePasswordValidatorType="WCFService.WCFService+MyUserNamePasswordValidator,WCFService"/>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<!--
using System.IdentityModel
-->
<bindings>
<wsHttpBinding>
<binding name ="WCFBindConfig">
<security mode ="Message">
<message clientCredentialType ="Windows" establishSecurityContext ="false"/>
</security>
</binding>
</wsHttpBinding>
</bindings>