C#中平添WebService时的app.config
C#中添加WebService时的app.config
C#中添加WebService时的app.config有如下内容:
谁能解释一下每个属性的含义?
------解决方案--------------------
你可以点击一下你不认识的关键字,再按F1.
大致是一些与web服务进行通信所需的配置。比如
binding是设置超时时间以及传输方式编码方式等等。
readerQuotas设置信息的长度限制。
security是安全认证方式
------解决方案--------------------
查msdn basicHttpBinding:http://msdn.microsoft.com/zh-cn/library/ms731361.aspx
C#中添加WebService时的app.config有如下内容:
<basicHttpBinding>
<binding name="WeatherWebServiceSoap" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
谁能解释一下每个属性的含义?
------解决方案--------------------
你可以点击一下你不认识的关键字,再按F1.
大致是一些与web服务进行通信所需的配置。比如
binding是设置超时时间以及传输方式编码方式等等。
readerQuotas设置信息的长度限制。
security是安全认证方式
------解决方案--------------------
查msdn basicHttpBinding:http://msdn.microsoft.com/zh-cn/library/ms731361.aspx