added samples
[windows-sources.git] / sdk / samples / WCFSamples / TechnologySamples / Basic / Contract / Service / Stream / CS / service / App.config
blobb690fd59be1c63209d461aa4ac24287b310c6771
1 <configuration>
2   <system.serviceModel>
3     <services>
4       <service 
5                                 name="Microsoft.ServiceModel.Samples.StreamingService"
6                                 behaviorConfiguration="StreamingServiceBehavior">
7         <host>
8           <baseAddresses>
9             <add baseAddress="http://localhost:8000/ServiceModelSamples/service"/>
10           </baseAddresses>
11         </host>
12         <!-- this endpoint is exposed at the base address provided by host: http://localhost:8000/ServiceModelSamples/service  -->
13         <endpoint address="ep1"
14                                                   binding="basicHttpBinding"
15               bindingConfiguration="HttpStreaming" 
16                                                   contract="Microsoft.ServiceModel.Samples.IStreamingSample" />
17         <!-- this endpoint is exposed at http://localhost:9000/ServiceModelSamples/service/ep2  -->
18         <endpoint address="http://localhost:9000/ServiceModelSamples/service/ep2"
19                                                   binding="customBinding"
20                                                   bindingConfiguration="Soap12" 
21                                                   contract="Microsoft.ServiceModel.Samples.IStreamingSample" />
22         <!-- the mex endpoint is exposed at http://localhost:8000/ServiceModelSamples/service/mex -->
23         <endpoint address="mex"
24                   binding="mexHttpBinding"
25                   contract="IMetadataExchange" />
26       </service>
27     </services>
29     <bindings>
30 <!-- an example basicHttpBinding using streaming -->
31 <basicHttpBinding>
32   <binding name="HttpStreaming" maxReceivedMessageSize="67108864"
33            transferMode="Streamed"/>
34 </basicHttpBinding>
35 <!-- an example customBinding using Http and streaming-->
36 <customBinding>
37   <binding name="Soap12">
38     <textMessageEncoding messageVersion="Soap12WSAddressing10" />
39     <httpTransport transferMode="Streamed" maxReceivedMessageSize="67108864"/>
40   </binding>
41 </customBinding>
42     </bindings>
44     <!--For debugging purposes set the includeExceptionDetailInFaults attribute to true-->
45     <behaviors>
46       <serviceBehaviors>
47         <behavior name="StreamingServiceBehavior">
48           <serviceMetadata httpGetEnabled="True"/>
49           <serviceDebug includeExceptionDetailInFaults="False" />
50         </behavior>
51       </serviceBehaviors>
52     </behaviors>
54   </system.serviceModel>
56 </configuration>