【问题标题】:How I can add SOAP Service header如何添加 SOAP 服务标头
【发布时间】:2021-05-05 19:24:14
【问题描述】:

我在我的项目中使用 SOAP Web 服务,服务提供支持告诉我在标题标签中向我们发送用户名和密码,我如何使用 C# 添加标题用户名和密码。谢谢。

【问题讨论】:

    标签: c# api web-services soap soap-client


    【解决方案1】:

    我们对您的代码一无所知,但标头本身可能如下所示:

    <soap:Header>
      <Auth xmlns="https://soapAdressGoesHere.com">
        <username>USER</username>
        <password>PASS</password>
      </Auth>
    </soap:Header>
    

    【讨论】:

      猜你喜欢
      • 2020-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多