【问题标题】:Custom WCF Binding equivalent to WSHttpBinding with WS-Addressing turned off自定义 WCF 绑定等效于 WSHttpBinding 且 WS-Addressing 已关闭
【发布时间】:2012-05-29 07:15:38
【问题描述】:

我正在尝试创建需要由 Java 客户端使用的 WCF 服务。 Java 客户端的要求是禁用 WS-Addressing。我必须使用 WSHttpBinding。首先,我对此有点陌生。我在网上做了一些快速搜索,但无法确定这是否是正确的解决方案。有人可以指出我正确的方向吗?

谢谢

【问题讨论】:

    标签: wcf wshttpbinding ws-addressing


    【解决方案1】:

    使用http://webservices20.cloudapp.net/ 处理此类问题。您没有指定需要哪种安全性。一种选择是

    <!-- generated via Yaron Naveh's http://webservices20.blogspot.com/ -->
    
    <customBinding>
      <binding name="NewBinding0">
        <transactionFlow />
        <security authenticationMode="UserNameOverTransport" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" />
        <textMessageEncoding messageVersion="Soap12" />
        <httpsTransport />
      </binding>
    </customBinding>
    
    <!-- generated via Yaron Naveh's http://webservices20.blogspot.com/ -->
    

    【讨论】:

    • 谢谢 Navesh。我确实尝试过使用您的工具,但遇到了异常。很抱歉没有提到我需要什么类型的安全性。以下是我当前的绑定。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-02
    • 2012-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多