import requests
from requests.structures import CaseInsensitiveDict
url = 'http://localhost:8080/TPService/TPServicePort?wsdl'
headers = CaseInsensitiveDict()
headers['Content-Type'] = 'text/xml'
payload = {'a': 'b'}
response = requests.post(url, headers=headers, json=payload, timeout=5)
print(response.status_code)