Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3.  
  4.   <system.web>
  5.     <compilation debug="true" />
  6.   </system.web>
  7.   <!-- When deploying the service library project, the content of the config file must be added to the host's
  8.  app.config file. System.Configuration does not support config files for libraries. -->
  9.   <system.serviceModel>
  10.     <bindings>
  11.       <basicHttpBinding>
  12.         <binding name="secureHttpBinding" messageEncoding="Text" maxReceivedMessageSize="1006710886">
  13.           <security mode="Transport">
  14.             <transport clientCredentialType="None" />
  15.           </security>
  16.         </binding>
  17.       </basicHttpBinding>
  18.     </bindings>
  19.     <services>
  20.       <service name="Service.Service1">
  21.         <host>
  22.           <baseAddresses>
  23.             <add baseAddress="https://192.168.10.199:443/Service.svc" />
  24.             <add baseAddress="http://192.168.10.199:8001/Service.svc" />
  25.           </baseAddresses>
  26.         </host>
  27.         <!-- Service Endpoints -->
  28.         <!-- Unless fully qualified, address is relative to base address supplied above -->
  29.         <endpoint address="" binding="basicHttpBinding" contract="Service.IService1" />
  30.         <endpoint address="" binding="basicHttpBinding" bindingConfiguration="secureHttpBinding" contract="Service.IService1">
  31.           <!--
  32.              Upon deployment, the following identity element should be removed or replaced to reflect the
  33.              identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity
  34.              automatically.
  35.          -->
  36.         </endpoint>
  37.         <!-- Metadata Endpoints -->
  38.         <!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->
  39.         <!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->
  40.         <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  41.       </service>
  42.     </services>
  43.     <behaviors>
  44.       <serviceBehaviors>
  45.         <behavior>
  46.           <!-- To avoid disclosing metadata information,
  47.          set the value below to false before deployment -->
  48.           <serviceMetadata httpsGetEnabled="true" />
  49.           <!-- To receive exception details in faults for debugging purposes,
  50.          set the value below to true.  Set to false before deployment
  51.          to avoid disclosing exception information -->
  52.           <serviceDebug includeExceptionDetailInFaults="False" />
  53.         </behavior>
  54.       </serviceBehaviors>
  55.     </behaviors>
  56.     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
  57.   </system.serviceModel>
  58.  
  59.   <startup>
  60.     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  61.   </startup>
  62. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement