1 <?xml version=
"1.0" encoding=
"utf-8" ?>
5 <service name=
"Microsoft.ServiceModel.Samples.FacadeService"
6 behaviorConfiguration=
"FacadeServiceBehavior">
9 <add baseAddress=
"http://localhost:8000/FacadeService"/>
12 <endpoint address=
"http://localhost:8000/FacadeService"
13 binding=
"wsHttpBinding"
14 bindingConfiguration=
"Binding1"
15 contract=
"Microsoft.ServiceModel.Samples.ICalculator"/>
16 <!-- the mex endpoint is exposed at http://localhost:8000/FacadeService/mex -->
17 <endpoint address=
"mex"
18 binding=
"mexHttpBinding"
19 contract=
"IMetadataExchange" />
25 address=
"net.tcp://localhost:8001/BackendService"
26 binding=
"customBinding"
27 bindingConfiguration=
"ClientBinding"
28 contract=
"Microsoft.ServiceModel.Samples.ICalculator"/>
33 <binding name=
"Binding1">
34 <security mode=
"Message">
35 <message clientCredentialType=
"UserName"/>
40 <binding name=
"ClientBinding">
41 <security authenticationMode=
"UserNameOverTransport"/>
42 <windowsStreamSecurity/>
50 <behavior name=
"FacadeServiceBehavior">
51 <serviceMetadata httpGetEnabled=
"True"/>
54 The serviceCredentials behavior allows one to define a service certificate.
55 A service certificate is used by the service to authenticate itself to its clients and to provide message protection.
56 This configuration references the "localhost" certificate installed during the setup instructions.
59 <serviceCertificate findValue=
"localhost" storeLocation=
"LocalMachine" storeName=
"My" x509FindType=
"FindBySubjectName" />
60 <userNameAuthentication userNamePasswordValidationMode=
"Custom"
61 customUserNamePasswordValidatorType=
"Microsoft.ServiceModel.Samples.MyUserNamePasswordValidator, FacadeService"/>
66 </system.serviceModel
>