使用OpenEMM Web服务2.0进行身份验证



有没有人有使用OpenEMM web服务的经验?

当我连接到服务时,我得到以下错误:

com.sun.xml.wss。XWSSecurityException:未满足已消化密码的接收方要求;嵌套异常是com.sun.xml.wss.XWSSecurityException:未满足消化密码的接收方要求

这是我的网。配置文件:

  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="openemmSoap11">
          <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="Digest" />
            <message clientCredentialType="UserName" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="https://newsletter.********.co.uk/openemm-ws2/" binding="basicHttpBinding"
        bindingConfiguration="openemmSoap11" contract="emmservice.openemm"
        name="openemmSoap11" />
    </client>
  </system.serviceModel>

(我很高兴在apache上安装ssl证书)

这是我的实现:

   var param = new[]
        {
            new MapItem {key = "email", value = "*******************"},
            new MapItem {key = "mailtype", value = "0"}, new MapItem {key = "gender", value = "0"}
        };
    var service = new AddSubscriberRequest
        {
            parameters = param,
            overwrite = false,
            doubleCheck = true,
            keyColumn = "email"
        };
    var request = new openemmClient();
    request.ClientCredentials.UserName.UserName = "***********";
    request.ClientCredentials.UserName.Password = "********";
    request.Open();
    request.AddSubscriber(service);
    request.Close();

你知道我哪里出错了吗?

OpenEMM Web services 2.0要求创建nonce、时间戳和密码加密。官方文档在这里

没有密码加密,请先尝试文档示例

如果你需要帮助实现-问!

相关内容

  • 没有找到相关文章

最新更新