Cyber​​source返回安全数据:没有WS-Security标头

时间:2014-10-31 01:42:31

标签: web-services security

我的网络资源测试安全密钥存在问题。 这是我的web.config / app.config

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="ITransactionProcessor">
          <security mode="TransportWithMessageCredential" />
        </binding>
        <binding name="ITransactionProcessor1" />
        <binding name="BasicHttpBinding_IServiceBilling" />
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://wcf.tw.gamagic.com/BillingPlus/ServiceBilling.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IServiceBilling"
        contract="BillingWcf.IServiceBilling" name="BasicHttpBinding_IServiceBilling" />
      <endpoint address="https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor"
        binding="basicHttpBinding" bindingConfiguration="ITransactionProcessor"
        contract="cyberSourceWcf.ITransactionProcessor" name="portXML" />
    </client>
  </system.serviceModel>

我使用他们提供的最新版测试网络服务

  

https://ics2ws.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.109.wsdl

当我尝试使用enrollAuthService时,系统始终返回此错误 安全数据:没有WS-Security标头

你们知道发生了什么事吗?

1 个答案:

答案 0 :(得分:2)

当我将安全模式从Transport更改为TransportWithMessageCredential时,它已得到修复。