added samples
[windows-sources.git] / sdk / samples / WCFSamples / TechnologySamples / Basic / Binding / Custom / Security / VB / client / App.config
blobf5f890e8d8881ecfa8dcb26dfedf21e35b5d7266
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
3 <system.serviceModel>
4 <client>
5 <endpoint name=""
6 address="net.tcp://localhost:8000/ServiceModelSamples/Service"
7 binding="customBinding"
8 bindingConfiguration="Binding1"
9 contract="Microsoft.ServiceModel.Samples.ICalculatorDuplex"
10 behaviorConfiguration="CalculatorClientBehavior">
11 <!--Include the identity element when running the sample cross-machine in a domain environment.
12 If the server is running in a user account, specify the account's UserPrincipalName as the identity.
13 If the server is running in a service account (Network Service for example), specify the account's
14 ServicePrincipalName as the identity.
15 The config below assumes that the server is running in a user account.
16 <identity>
17 <userPrincipalName value = "user_name@service_domain"/>
18 </identity>
19 -->
20 </endpoint>
21 </client>
23 <bindings>
24 <!-- configure a custom binding -->
25 <customBinding>
26 <binding name="Binding1">
27 <security authenticationMode="SecureConversation"
28 requireSecurityContextCancellation="true">
29 </security>
30 <textMessageEncoding messageVersion="Soap12WSAddressing10" writeEncoding="utf-8"/>
31 <sslStreamSecurity requireClientCertificate="false"/>
32 <tcpTransport/>
33 </binding>
34 </customBinding>
35 </bindings>
37 <behaviors>
38 <endpointBehaviors>
39 <behavior name="CalculatorClientBehavior">
40 <clientCredentials>
41 <serviceCertificate>
42 <authentication certificateValidationMode="PeerOrChainTrust"/>
43 </serviceCertificate>
44 </clientCredentials>
45 </behavior>
46 </endpointBehaviors>
47 </behaviors>
48 </system.serviceModel>
49 </configuration>