WS寻址字段

扫码查看
本文介绍了WS寻址字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将同步响应上的wsa:To和wsa:From字段更改为请求?如果是这样,那怎么做?

is it possible to change the wsa:To and wsa:From fields on the sync response to a request? If so, how is that done?

推荐答案

public void ApplyClientBehavior
    (ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
    CustomMessageInspector inspector = new CustomMessageInspector();
    clientRuntime.MessageInspectors.Add(inspector);
    clientRuntime.Via = new Uri("http://gatewayRouter/routingService");
}


这篇关于WS寻址字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 14:29
查看更多