title: SOAP Webservices
body: <p>I have a wsdl containing SAOP Header and SOAP Body. I generated client with eclipse and APACHE CXF and sent request. But request is failing saying Header is missed or invalid.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p> </p>
  
  <pre><code>&lt;types&gt;
      &lt;xsd:schema&gt;
          &lt;xsd:import
              namespace="http://finservice.cl.com/Services/financier/Operational/Messages/Request"
              schemaLocation="financierRequest.xsd"/&gt;
          &lt;xsd:import
              namespace="http://finservice.cl.com/Services/financier/Operational/Messages/Response"
              schemaLocation="financierResponse6.xsd"/&gt;
          &lt;xsd:import namespace="http://finservice.cl.com/Services/Faults"
              schemaLocation="finserviceFaults.xsd"/&gt;
          &lt;xsd:import namespace="http://www.cl.com/Services/SOAPHeaders"
              schemaLocation="CLSoapHeaders.xsd"/&gt;
          &lt;xsd:import
              namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
              schemaLocation="oasis-200401-wss-wssecurity-secext-1.0.xsd"/&gt;
      &lt;/xsd:schema&gt;
  &lt;/types&gt;
  
  
  &lt;message name="WS-Security-SOAPHeader"&gt;
      &lt;part element="wssec:Security" name="Security"/&gt;
  &lt;/message&gt;
  
  &lt;message name="CLSOAPHeader"&gt;
      &lt;part element="hdr_ns:RequestContextHeader" name="requestHeader"/&gt;
      &lt;part element="hdr_ns:ProcessingNodesHeader" name="processingNodesHeader"/&gt;
  &lt;/message&gt;
  
  
  &lt;message name="financierRequest"&gt;
      &lt;part element="req_ns:financierRequestElement" name="financierRequestElement"/&gt;
  &lt;/message&gt;
  
  
  &lt;message name="financierResponse"&gt;
      &lt;part element="res_ns:financierResponseElement" name="financierResponseElement"/&gt;
  &lt;/message&gt;
  
  
  &lt;message name="Fault_Exception"&gt;
      &lt;part element="fault_ns:Fault" name="fault"/&gt;
  &lt;/message&gt;
  
  
  &lt;portType name="finServicePortType"&gt;
      &lt;operation name="getFinanciers"&gt;
          &lt;input message="tns:financierRequest"/&gt;
          &lt;output message="tns:financierResponse"/&gt;
          &lt;fault message="tns:Fault_Exception" name="Fault_Exception"/&gt;
      &lt;/operation&gt;
  &lt;/portType&gt;
  
  
  &lt;binding name="finServiceBinding" type="tns:finServicePortType"&gt;
      &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
  
      &lt;operation name="getFinanciers"&gt;
          &lt;soap:operation soapAction=""/&gt;
          &lt;input&gt;
              &lt;soap:body parts="financierRequestElement" use="literal"/&gt;
              &lt;soap:header message="tns:CLSOAPHeader" part="requestHeader" use="literal"/&gt;
              &lt;!-- soap:header message="tns:CLSOAPHeader" part="processingNodesHeader" use="optional"/--&gt;
              &lt;soap:header message="tns:WS-Security-SOAPHeader" part="Security" use="literal"/&gt;
          &lt;/input&gt;
          &lt;output&gt;
              &lt;soap:body use="literal"/&gt;
              &lt;soap:header message="tns:CLSOAPHeader" part="processingNodesHeader" use="literal"/&gt;
              &lt;soap:header message="tns:WS-Security-SOAPHeader" part="Security" use="literal"/&gt;
          &lt;/output&gt;
          &lt;fault name="Fault_Exception"&gt;
              &lt;soap:fault name="Fault_Exception" use="literal"/&gt;
          &lt;/fault&gt;
      &lt;/operation&gt;
  &lt;/binding&gt;
  
  &lt;service name="financierService_v4"&gt;
      &lt;port binding="tns:finServiceBinding" name="finServicePort"&gt;
          &lt;soap:address                     location="http://finservice.qtcorpCL.cl.com:20021/finservService"/&gt;
      &lt;/port&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can any one guide me how to write client for this wsdl?
  How to attach header for this.</p>