title: How to add wsa reference parameters to cxf client call?
body: <p>I understand how to simply add the "standard" ws addressing headers to a cxf client call:</p>
  
  <pre><code>JaxWsProxyFactoryBean factory = ...;
  factory.getFeatures().add(new WSAddressingFeature());
  </code></pre>
  
  <p>But I don't understand exactly how I could add wsa reference parameters so that the soap header of the message looks like this:</p>
  
  <pre><code>&lt;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=... &gt;
  &lt;soap:Header&gt;
    &lt;wsa:To&gt;...&lt;/wsa:To&gt;
    &lt;wsa:Action&gt;...&lt;/wsa:Action&gt;
    &lt;wsa:MessageID&gt;...&lt;/wsa:MessageID&gt;
    &lt;ns1:Country wsa:IsReferenceParameter="true"&gt;xx&lt;/ns1:Country&gt;
    &lt;ns1:Brand wsa:IsReferenceParameter="true"&gt;x&lt;/ns1:Brand&gt;
  &lt;/soap:Header&gt; ...
  </code></pre>
  
  <p>How can I add this headers within a cxf client call?</p>
  
  <p>kind regards,
  soilworker</p>