引用wcf丢失参数的问题
我在服务器端设定绑定参数<binding name="NewBinding0" openTimeout="00:03:00" sendTimeout="00:03:00" transactionFlow="true" maxBufferPoolSize="524288000" maxReceivedMessageSize="655360000" messageEncoding="Mtom">
但是客户端引用后产生的配置为以下的配置端,丢失了“transactionFlow="true" maxBufferPoolSize="524288000" maxReceivedMessageSize="655360000"这些配置项,vs2010是这样,vs2013也是这样,害的我每次有人引用服务,我都要让客户手工加项这些配置,这是什么情况,什么不能带过来,我记得vs2008是好的吗。
<binding name="WSHttpBinding_IEhnchinaService1"
messageEncoding="Mtom">
<reliableSession enabled="true" />
<security mode="None" />
</binding> --------------------编程问答--------------------
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ClassName" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="6553600" maxReceivedMessageSize="6553600" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="819200" maxArrayLength="1638400"
maxBytesPerRead="409600" maxNameTableCharCount="1638400" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/WcfService/ServiceName/"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ClassName"
contract="Services.IService" name="WSHttpBinding_ClassName">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
完整的是这样的,你对照看下 --------------------编程问答-------------------- 就是引用服务后不完整啊 --------------------编程问答-------------------- 客户端初装时给他配置好即可 --------------------编程问答-------------------- 那么原始?应该是自动生成的
补充:.NET技术 , Web Services