1 <?xml version=
"1.0" encoding=
"utf-8" ?>
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.
17 <userPrincipalName value = "user_name@service_domain"/>
24 <!-- configure a custom binding -->
26 <binding name=
"Binding1">
27 <security authenticationMode=
"SecureConversation"
28 requireSecurityContextCancellation=
"true">
30 <textMessageEncoding messageVersion=
"Soap12WSAddressing10" writeEncoding=
"utf-8"/>
31 <sslStreamSecurity requireClientCertificate=
"false"/>
39 <behavior name=
"CalculatorClientBehavior">
42 <authentication certificateValidationMode=
"PeerOrChainTrust"/>
48 </system.serviceModel
>