title: How to run this Soap API Request Using Python
body: <p>I am trying to run this <a href="https://quinyx.helpdocs.io/l/en/article/5f8w8ui90b-2-19-wsdl-find-employee" rel="nofollow noreferrer">quinyx</a> documentation to find employees.
  I have already checked this <a href="https://stackoverflow.com/questions/49702280/soap-api-with-python">SOAP API with Python</a> but I do not understand it properly as I have little knowledge about soap.  Below is the request documentation is given by quinyx.</p>
  <p><strong>Example Request:</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;SOAP-ENV:Envelope SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; 
            xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; 
            xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
            xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
            xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
            xmlns:ns1737=&quot;uri:FlexForce&quot;&gt;
   &lt;SOAP-ENV:Body&gt;
     &lt;ns1737:wsdlGetSkillCategories xmlns:ns1737=&quot;uri:FlexForce&quot;&gt;
       &lt;apiKey xsi:type=&quot;xsd:string&quot;&gt;1111-1111-1111-1111&lt;/apiKey&gt;
     &lt;/ns1737:wsdlGetSkillCategories&gt;
   &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  <p><strong>Example response</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;SOAP-ENV:Envelope SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; 
    xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
    xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; 
    xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; 
    xmlns:tns=&quot;https://api.quinyx.com/soap/FlexForce&quot;&gt;
     &lt;SOAP-ENV:Body&gt;
  
         &lt;ns1:wsdlFindEmployeesResponse xmlns:ns1=&quot;uri:FlexForce&quot;&gt;
             &lt;return xsi:type=&quot;SOAP-ENC:Array&quot; SOAP-ENC:arrayType=&quot;tns:UnitEmployee[1]&quot;&gt;
                 &lt;item xsi:type=&quot;tns:UnitEmployee&quot;&gt;
                     &lt;api_key xsi:type=&quot;xsd:string&quot;&gt;1111-1111-1111-1111&lt;/api_key&gt;
                     &lt;unitName xsi:type=&quot;xsd:string&quot;&gt;Ship A&lt;/unitName&gt;
                     &lt;extApplicationId xsi:type=&quot;xsd:string&quot;&gt;&lt;/extApplicationId&gt;
                     &lt;badgeNo xsi:type=&quot;xsd:string&quot;&gt;10a34&lt;/badgeNo&gt;
                    &lt;employeeId xsi:type=&quot;xsd:int&quot;&gt;127a7468&lt;/employeeId&gt;
                 &lt;/item&gt;
             &lt;/return&gt;
         &lt;/ns1:wsdlFindEmployeesResponse&gt;
     &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope
  </code></pre>
  <p><strong>My Attempt:</strong></p>
  <pre><code>import requests
  
  req_headers = {&quot;content-type&quot;: &quot;text/xml&quot;}
  req_headers =&quot;&quot;&quot;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;SOAP-ENV:Envelope SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; 
            xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; 
            xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
            xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
            xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
            xmlns:ns1737=&quot;uri:FlexForce&quot;&gt;
   &lt;SOAP-ENV:Body&gt;
     &lt;ns1737:wsdlGetSkillCategories xmlns:ns1737=&quot;uri:FlexForce&quot;&gt;
       &lt;apiKey xsi:type=&quot;xsd:string&quot;&gt;1111-1111-1111-1111&lt;/apiKey&gt;
     &lt;/ns1737:wsdlGetSkillCategories&gt;
   &lt;/SOAP-ENV:Body&gt;
  
  &lt;/SOAP-ENV:Envelope&gt;
  &quot;&quot;&quot;
  response = requests.get(
    &quot;https://web.quinyx.com&quot;,
    data=req_body,
    headers=req_headers
  )
  </code></pre>
  <p>I understand  I need to give <strong>userid</strong> and <strong>password</strong> but I don't know where should I give it.</p>