WCF的问题,请进来

在编程里这种方式:<SPAN 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">如果写在配置文件中的话,该如何写。 谢谢各位。

慕标5832272
浏览 421回答 2
2回答

茅侃侃

<bindings> <wsHttpBinding> <binding name="MyBinding" transactionFlow="True" /> </wsHttpBinding> </bindings> 这是一个bindings的配置,在你的服务的配置上这么写 <endpoint address="" binding="wsHttpBinding" contract="GDev.Test.Cmd.IBlogEntry" bindingConfiguration="MyBinding">
打开App,查看更多内容
随时随地看视频慕课网APP