How do I call a web service method when using python 'requests' library? My code looks like this:
import requests
CERT = r'/path/to/cert.crt' #Client certificate
KEY = r'/path/to/key.key' #Client private key
CACERT = r'/path/to/ca.crt' #Server certificate chain
session = requests.Session()
session.cert = (CERT, KEY)
resp = session.get('http://www.smartcallesb.co.za:8091/SmartcallServices2/SmartloadService?wsdl',
verify=CACERT)
#print resp.content
session.close()
How would you amend the above code to call a web service function called 'getDealerBalance()'? Please illustrate. If it is not possible is there a way to do this in python? If so please help me with an example. Thank you.