Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <system.serviceModel>
- <bindings>
- <basicHttpBinding>
- <binding name="MyBinding">
- <security mode="TransportCredentialOnly">
- <transport clientCredentialType="Windows" />
- </security>
- </binding>
- </basicHttpBinding>
- </bindings>
- <services>
- <service name="Samples.ServiceFacadeService" behaviorConfiguration="ServiceFacadeServiceBehavior">
- <endpoint address="" binding="basicHttpBinding" bindingName="MyBinding"
- contract="Samples.IServiceFacadeService">
- </endpoint>
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior name="ServiceFacadeServiceBehavior">
- <serviceDebug includeExceptionDetailInFaults="true"/>
- </behavior>
- </serviceBehaviors>
- </behaviors>
- </system.serviceModel>
- <services>
- <!-- Note: the service name must match the configuration name for the service implementation. -->
- <service name="MyNamespace.MyServiceType" behaviorConfiguration="MyServiceTypeBehaviors" >
- <!-- Add the following endpoint. -->
- <!-- Note: your service must have an http base address to add this endpoint. -->
- <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior name="MyServiceTypeBehaviors" >
- <!-- This disables it. -->
- <serviceMetadata httpGetEnabled="false" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <endpoint address="" binding="basicHttpBinding" bindingName="MyBinding"
- contract="Samples.IServiceFacadeService">
- </endpoint>
- <endpoint address="" binding="basicHttpBinding" **bindingConfiguration**="MyBinding"
- contract="Samples.IServiceFacadeService">
- </endpoint>
Add Comment
Please, Sign In to add comment