無廢話WCF入門教程二[WCF應用的通訊過程]
阿新 • • 發佈:2018-12-27
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4 有關如何配置 ASP.NET 應用程式的詳細訊息,請訪問
5 http://go.microsoft.com/fwlink/?LinkId=169433
6 -->
7
8 <configuration>
9 <system.web>
10 <compilation debug="true" targetFramework="4.0" />
11 </system.web>
12
13 <system.serviceModel>
14 <bindings>
15 <basicHttpBinding>
16 <binding name="BasicHttpBinding_IUser" closeTimeout="00:01:00"
17 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
18 allowCookies=" false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
19 maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
20 messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
21 useDefaultWebProxy=" true">
22 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
23 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
24 <security mode="None">
25 <transport clientCredentialType="None" proxyCredentialType="None"
26 realm="" />
27 <message clientCredentialType="UserName" algorithmSuite="Default" />
28 </security>
29 </binding>
30 </basicHttpBinding>
31 </bindings>
32 <client>
33 <endpoint address="http://localhost/User.svc" binding="basicHttpBinding"
34 bindingConfiguration="BasicHttpBinding_IUser" contract="WCFService.IUser"
35 name="BasicHttpBinding_IUser" />
36 </client>
37 </system.serviceModel>
38 </configuration>