[已解决问题] WCF的问题,请进来
提问时间: 2008-08-04 15:42
悬赏分:5 浏览:116 次
在编程里这种方式:  WSHttpBinding binding = new WSHttpBinding();
      binding.TransactionFlow = true;

如果写在配置文件中的话,该如何写。 谢谢各位。
最佳答案
<bindings> <wsHttpBinding> <binding name="MyBinding" transactionFlow="True" /> </wsHttpBinding> </bindings> 这是一个bindings的配置,在你的服务的配置上这么写 <endpoint address="" binding="wsHttpBinding" contract="GDev.Test.Cmd.IBlogEntry" bindingConfiguration="MyBinding">
2008/8/4 15:50:53 回答者:Gray Zhang


提问者对于答案的评价:谢谢你的解答。
其它回答(1)
见MSDN: http://msdn.microsoft.com/zh-cn/library/ms731299.aspx --------------------------------------------------------- <configuration> <system.ServiceModel> <bindings> <wsHttpBinding> <binding name="test" closeTimeout="00:00:10" openTimeout="00:00:20" receiveTimeout="00:00:30" sendTimeout="00:00:40" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="WeakWildcard" maxMessageSize="1000" messageEncoding="Mtom" proxyAddress="http://foo/bar" textEncoding="utf-16" useDefaultWebProxy="false"> <reliableSession ordered="false" inactivityTimeout="00:02:00" enabled="true" /> <security mode="Transport"> <transport clientCredentialType="Digest" proxyCredentialType="None" realm="someRealm" /> <message clientCredentialType="Windows" negotiateServiceCredential="false" algorithmSuite="Aes128" defaultProtectionLevel="None" /> </security> </binding> </wsHttpBinding> </bindings> </system.ServiceModel> </configuration>
2个月前   回答者:一滴水 - 菜鸟二级
评论
   您需要登录以后才能回答!
 

我要提问

我的问题


快到期问题

> 问题排行榜

相关内容

相关链接