<?xml version="1.0"?>
|
<configuration>
|
<connectionStrings>
|
<add name="SqlConnection" connectionString="Data Source=.;Initial Catalog=CY_DocumentSystemOnline;User ID=sa;Password=123456" providerName="System.Data.SqlClient"/>
|
</connectionStrings>
|
<system.web>
|
<compilation debug="true" targetFramework="4.0"/>
|
</system.web>
|
<system.serviceModel>
|
<bindings>
|
<basicHttpBinding>
|
<binding name="MyBasicBinding" receiveTimeout="00:30:00" messageEncoding="Mtom" maxReceivedMessageSize="9223372036854775807" transferMode="Streamed" sendTimeout="00:30:00"/>
|
</basicHttpBinding>
|
</bindings>
|
<services>
|
<service name="CY_DocumentSynchroWCFService.DocumentSynchroService">
|
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="MyBasicBinding" contract="CY_DocumentSynchroWCFService.IDocumentSynchroService"/>
|
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
|
<host>
|
<baseAddresses>
|
<add baseAddress="http://localhost:888/DocumentSynchroWCFService"/>
|
</baseAddresses>
|
</host>
|
</service>
|
</services>
|
<behaviors>
|
<serviceBehaviors>
|
<behavior>
|
<!-- 为避免泄漏元数据信息,
|
请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
|
<serviceMetadata httpGetEnabled="True"/>
|
<!-- 要接收故障异常详细信息以进行调试,
|
请将以下值设置为 true。在部署前设置为 false
|
以避免泄漏异常信息-->
|
<serviceDebug includeExceptionDetailInFaults="False"/>
|
</behavior>
|
</serviceBehaviors>
|
</behaviors>
|
</system.serviceModel>
|
<system.webServer>
|
<modules runAllManagedModulesForAllRequests="true"/>
|
</system.webServer>
|
</configuration>
|