title: SOAP Service: I have a sample request file XML but getting confused about the format
body: <p>I'm working on integrating to a remote service running Apache Axis. I have been given a sample request file that looks like the following</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;request xmlns="http://api.somedomain.com/openSession" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="openSession.xsd"&gt;
      &lt;session key="xabc123092"/&gt;
      &lt;user name="admin" password="secret"/&gt;
  &lt;/request&gt;
  </code></pre>
  
  <p>I know SOAP requires "envelope and body" such that the request conforms with</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:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Now I'm confused about the sample request file given to me. I have tried to craft the following SOAP request with some SOAPAction in the request header but to no avail</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:openSession&gt;
           &lt;session key="xabc123092"/&gt;
           &lt;user name="admin" password="secret"/&gt;
        &lt;/soapenv:openSession&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>The above gives the following</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&gt;soapenv:Server.userException&lt;/faultcode&gt;
              &lt;faultstring&gt;org.xml.sax.SAXException: operation description is missing parameter description!&lt;/faultstring&gt;
              &lt;detail&gt;
                  &lt;ns1:hostname 
                      xmlns:ns1="http://xml.apache.org/axis/"&gt;api.somedomain.com
                  &lt;/ns1:hostname&gt;
              &lt;/detail&gt;
          &lt;/soapenv:Fault&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Can someone tell me what I'm missing here? </p>