我想知道下面的元素是什么意思:
<a:To s:mustUnderstand="1">http://localhost/w.Web/service.svc</a:To>似乎当url错误时,WCF服务仍然处理soap请求。
为什么没有出现在我在其他站点看到的SOAP消息中?
有什么想法吗?
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">http://localhost/w.Web/service.svc</a:To>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
...
</s:Body>
</s:Envelope>发布于 2012-01-18 19:36:20
To标头是WS-Addressing协议的一部分。它定义了消息的目的地(例如,消息路由器可以使用它将消息传递到真正的目的地)。只有当它使用WS-Addressing时,它才会包含在SOAP消息中。当使用WsHttpBinding时,WCF始终使用寻址。
https://stackoverflow.com/questions/8902853
复制相似问题