【问题标题】:Can I add a custom http header to SOAP message我可以向 SOAP 消息添加自定义 http 标头吗
【发布时间】:2009-12-21 08:19:48
【问题描述】:

我可以在以下标题中添加自定义标题

POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<?xml version="1.0"?>
 .....

请帮忙?

【问题讨论】:

  • 您是如何构建 SOAP 消息的?你能给我们看看代码吗?

标签: asp.net soap


【解决方案1】:

HttpModule 写入 intercept WebService Response 并将您的自定义标头添加到拦截的响应流中。

【讨论】:

    【解决方案2】:

    是的,请参阅此错误报告,答案在 2010-07-23 05:59 UTC

    http://bugs.php.net/bug.php?id=51551&edit=2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-17
      • 1970-01-01
      • 2011-08-15
      • 2016-09-10
      • 2012-03-19
      • 2018-10-22
      • 2016-03-25
      相关资源
      最近更新 更多