send POST request to web services in python
问题 I need to consume a several's SOAP web services, if I send a xml file as request I get the response without issues. But I want to send only some arguments and not all the xml file To make a request I send like the using REQUESTS library: import requests with open("/home/WSProject/xmlws/media/QueryTest.xml","r") as request_data = archivo.read() target_url = "http://1.1.1.1:4384/services/BbServices?wsdl" headers = {'Content-type':'text/xml'} data_response = requests.post(target_url, data