added samples
[windows-sources.git] / sdk / samples / WCFSamples / TechnologySamples / Scenario / TrustedFacade / CS / FacadeService / App.config
blob99da3357df4e8240ced881978660944e7ca95b82
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
3 <system.serviceModel>
4 <services>
5 <service name="Microsoft.ServiceModel.Samples.FacadeService"
6 behaviorConfiguration="FacadeServiceBehavior">
7 <host>
8 <baseAddresses>
9 <add baseAddress="http://localhost:8000/FacadeService"/>
10 </baseAddresses>
11 </host>
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" />
20 </service>
21 </services>
23 <client>
24 <endpoint name=""
25 address="net.tcp://localhost:8001/BackendService"
26 binding="customBinding"
27 bindingConfiguration="ClientBinding"
28 contract="Microsoft.ServiceModel.Samples.ICalculator"/>
29 </client>
31 <bindings>
32 <wsHttpBinding>
33 <binding name="Binding1">
34 <security mode="Message">
35 <message clientCredentialType="UserName"/>
36 </security>
37 </binding>
38 </wsHttpBinding>
39 <customBinding>
40 <binding name="ClientBinding">
41 <security authenticationMode="UserNameOverTransport"/>
42 <windowsStreamSecurity/>
43 <tcpTransport/>
44 </binding>
45 </customBinding>
46 </bindings>
48 <behaviors>
49 <serviceBehaviors>
50 <behavior name="FacadeServiceBehavior">
51 <serviceMetadata httpGetEnabled="True"/>
53 <!--
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.
57 -->
58 <serviceCredentials>
59 <serviceCertificate findValue="localhost" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" />
60 <userNameAuthentication userNamePasswordValidationMode="Custom"
61 customUserNamePasswordValidatorType="Microsoft.ServiceModel.Samples.MyUserNamePasswordValidator, FacadeService"/>
62 </serviceCredentials>
63 </behavior>
64 </serviceBehaviors>
65 </behaviors>
66 </system.serviceModel>
67 </configuration>