62,041
社区成员
发帖
与我相关
我的任务
分享
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:5500/ExampleService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding"
contract="ExampleService.IExampleService" name="WSHttpBinding">
<identity>
<servicePrincipalName value="host/pc-lgl" />
</identity>
</endpoint>
<endpoint address="http://localhost:5500/UserInfoService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding"
contract="UserInfoService.IUserInfoService" name="WSHttpBinding">
<identity>
<servicePrincipalName value="host/pc-lgl" />
</identity>
</endpoint>
</client>
</system.serviceModel>
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="UcsmyEntities" connectionString="metadata=res://*/Ucsmy.csdl|res://*/Ucsmy.ssdl|res://*/Ucsmy.msl;provider=System.Data.SqlClient;provider connection string="Data Source=LESLIE-PC;Initial Catalog=MySQL;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>
</connectionStrings>
<appSettings>
<add key="SqlDAL" value="Ucsmy.Portal.DAL"/>
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
</system.web>
<system.serviceModel>
<services>
<!--ExampleService-->
<service name="Ucsmy.Portal.Service.ExampleService" behaviorConfiguration="testServiceBehavior">
<endpoint address="" binding="wsHttpBinding" contract="Ucsmy.Portal.Service.IExampleService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
<!--UserinfoService-->
<service name="Ucsmy.Portal.Service.UserInfoService" behaviorConfiguration="testServiceBehavior">
<endpoint address="" binding="wsHttpBinding" contract="Ucsmy.Portal.Service.IUserInfoService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="testServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>