If you want to test a  soap service with curl then you could use following,

curl -X POST -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction:''"  -d @test.xml http://host:port/myservice

Please note SOAPAction header value can be obtained from the wsdl provided. It can be found within the operation tag that you are trying to test.

<operation name="cleanTable">
  <wsdlsoap:operation soapAction=""/>

If you want to use Python to do this to automate execution of inputXML with different values, then use subprocess module like this,

import subprocess
....

...

inputXML=test.xml
serviceURL= http://host:port/myservice
successCriteria=RESPONSE_HAS_THIS_STRING

    p = subprocess.Popen(["curl -X POST -H "'"Content-Type: text/xml;charset=UTF-8"'" " + " -H " + '"'"SOAPAction:''"'"' +   " -d  @" + inputXML +" " + serviceURL],
            stdout=subprocess.PIPE,shell=True)
    p.wait() // Wait until the call finishes


          if successCriteria in str (p.communicate()):
          
            print ("\033[92mTEST SUCCESSFUL:<" + object+">\033[0m")

          else:
            print ("\033[91mTEST FAILED: <" + object+">\033[0m")