<bindings> <wsHttpBinding> <binding name="SafeServiceConf" maxReceivedMessageSize="65536"> <readerQuotas maxStringContentLength="65536" maxArrayLength="65536" maxBytesPerRead="65536" /> <security mode="TransportWithMessageCredential"> <message clientCredentialType="UserName" /> </security> </binding> </wsHttpBinding> </bindings>
5. Modify your end point address to refer to this binding configuration
<endpoint address="" binding="wsHttpBinding" contract="MySamples.IWcfService" bindingConfiguration="SafeServiceConf">
also modify your metadata exchange endpoint to use mexHttpsBinding
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
6. Modify your service behavior to look like this
<behavior name="WcfService.Service1Behavior">
endpoint security definition download endpoint security comparisonTAGS
CATEGORIES