title: curl command giving "no SOAPAction header!" error
body: <p>I am trying to run the following curl command but i am getting error shown below:</p>
  
  <p><strong>command:</strong> </p>
  
  <pre><code>curl -H "Content-Type: text/xml; charset=utf-8" \
  -H "SOAPAction:" \
  -d @amit.xml -X POST http://server-ip:8200/axis/services/SOAPRequestHandler
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;soapenv:Body&gt;
    &lt;soapenv:Fault&gt;
     &lt;faultcode xmlns:ns1="http://xml.apache.org/axis/"&gt;ns1:Client.NoSOAPAction&lt;/faultcode&gt;
  &lt;faultstring&gt;no SOAPAction header!&lt;/faultstring&gt;
     &lt;detail&gt;
      &lt;ns2:hostname xmlns:ns2="http://xml.apache.org/axis/"&gt;stsosctwb10&lt;/ns2:hostname&gt;
     &lt;/detail&gt;
    &lt;/soapenv:Fault&gt;
   &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I read through several articles on how to fix this but nothing is helping. In the wsdl file, the soapAction field is also empty. Below is the wsdl file contents as well:</p>
  
  <pre><code> &lt;wsdl:operation name="processSync"&gt;
  
           &lt;wsdlsoap:operation soapAction=""/&gt;
  </code></pre>
  
  <p>Could you please guide me on what could be wrong with my command?</p>