我了解如何简单地将“标准”ws 寻址标头添加到 cxf 客户端调用:
JaxWsProxyFactoryBean factory = ...;
factory.getFeatures().add(new WSAddressingFeature());
但我不明白如何添加 wsa 引用参数,以便消息的肥皂标题如下所示:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://www.w3.org
/2005/08 /addressing" xmlns:ns1=... >
<soap:Header>
<wsa:To>...</wsa:To>
<wsa:Action>...</wsa:Action>
<wsa:MessageID>...</wsa:MessageID>
<ns1:Country wsa:IsReferenceParameter="true">xx</ns1:Country>
<ns1:Brand wsa:IsReferenceParameter="true">x</ns1:Brand>
</soap:Header> ...
如何在 cxf 客户端调用中添加此标头?
亲切的问候,土工