首页 新闻 会员 周边 捐助

WCF的问题,请进来

0
悬赏园豆:5 [已解决问题] 解决于 2008-08-04 16:03
在编程里这种方式:<SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">&nbsp;&nbsp;WSHttpBinding binding = new WSHttpBinding();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B style="mso-bidi-font-weight: normal">binding</B>.TransactionFlow = true;<BR style="mso-special-character: line-break"><BR style="mso-special-character: line-break">如果写在配置文件中的话,该如何写。 谢谢各位。 </SPAN>
不若相忘于江湖的主页 不若相忘于江湖 | 初学一级 | 园豆:51
提问于:2008-08-04 15:42
< >
分享
最佳答案
0
<bindings> <wsHttpBinding> <binding name="MyBinding" transactionFlow="True" /> </wsHttpBinding> </bindings> 这是一个bindings的配置,在你的服务的配置上这么写 <endpoint address="" binding="wsHttpBinding" contract="GDev.Test.Cmd.IBlogEntry" bindingConfiguration="MyBinding">
Gray Zhang | 专家六级 |园豆:17610 | 2008-08-04 15:50
其他回答(1)
0
见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>
一滴水 | 园豆:210 (菜鸟二级) | 2008-08-04 15:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册