title: Apache CXF Header transform %gt; to > in payload
body: <p>I need to set this headers to the XML payload:</p>
  <pre><code>    &lt;soap:Header&gt;
        &lt;wsa:MessageID xmlns:wsa=&quot;http://www.w3.org/2005/08/addressing&quot;&gt;uuid:C112C31F-04056-4567-T554-02A7CUAI01E1&lt;/wsa:MessageID&gt;
        &lt;wsa:Action xmlns:wsa=&quot;http://www.w3.org/2005/08/addressing&quot;&gt;urn:es:request&lt;/wsa:Action&gt;
        &lt;Context xmlns=&quot;urn:es:context&quot;&gt;&lt;parameter&gt;&lt;/parameter&gt;&lt;/Context&gt;
      &lt;/soap:Header&gt;
  </code></pre>
  <p>With this invocation:</p>
  <pre><code>ClientProxy.getClient(data)
             .getRequestContext()
                   .put(Header.HEADER_LIST,soapHeaders.getHeaders());
  </code></pre>
  <p>And the SoapHeader class:</p>
  <pre><code>public class SoapHeaders {
  
      private static final String NAMESPACE_URI   = &quot;http://www.w3.org/2005/08/addressing&quot;;
      private static final String PREFIX  = &quot;wsa&quot;;
      private static final String MESSAGE_LOCAL_NAME      = &quot;MessageID&quot;;
      private static final String ACTION_LOCAL_NAME      = &quot;Action&quot;;
  
      
      public List&lt;Header&gt; getHeaders() {
          try {
             List&lt;Header&gt; soapHeaders = new ArrayList&lt;Header&gt;();
             Header messageHeader = new Header(new QName(NAMESPACE_URI, MESSAGE_LOCAL_NAME, PREFIX), &quot;uuid:C112C31F-04056-4567-T554-02A7CUAI01E1&quot;, new JAXBDataBinding(String.class));
             Header actionHeader = new Header(new QName(NAMESPACE_URI, ACTION_LOCAL_NAME, PREFIX), urn, new JAXBDataBinding(String.class));
             Header contextHeader = new Header(new QName(&quot;urn:es:context&quot;, &quot;Context&quot;), &quot;&lt;parameter&gt;&lt;/parameter&gt;&quot;, new JAXBDataBinding(String.class));     
             soapHeaders.add(messageHeader);
             soapHeaders.add(actionHeader);   
             soapHeaders.add(contextHeader);      
             return soapHeaders;
          }catch (JAXBException ex) {
              ex.printStackTrace();
          }
      }
  }
  </code></pre>
  <p>But this line is where I have the problem:</p>
  <pre><code>Header contextHeader = new Header(new QName(&quot;urn:es:context&quot;, &quot;Context&quot;), &quot;&lt;parameter&gt;&lt;/parameter&gt;&quot;, new JAXBDataBinding(String.class));        
  </code></pre>
  <p>Because it is sended as:</p>
  <pre><code> &lt;Context xmlns=&quot;urn:es:context&quot;&gt;&amp;lt;parameter&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/Context&gt;
  </code></pre>
  <p>And I need &quot;&lt;, &gt;, &lt;/&quot;.</p>
  <p>Any ideas to transform to an xml tag?</p>
  <p>Thanks in advance.</p>