Closed abhidotnet closed 8 years ago
You need to initialize the transport yourself and pass verify=false. See http://docs.python-zeep.org/en/latest/transport.html#transport-options
How do I do that on the command line?
Valid point, just added it via --no-verify. You need to install the latest version for this.
pip install https://github.com/mvantellingen/python-zeep/archive/master.zip#egg=zeep
Thanks for the quick response. Appreciate you building this library.
After the latest update to my library, I am seeing the following message on the command line.
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='q2devapp.myhost
.com', port=443): Max retries exceeded with url: /OperationalService.svc?wsdl (C
aused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPS
Connection object at 0x00000000033DEE10>: Failed to establish a new connection:
[Errno 11004] getaddrinfo failed',))
I also have an https wsdl: https://test-dilo.nfz.gov.pl/ws-broker-server-pkus-auth/services/Auth?wsdl
My code: from zeep import Client from zeep.transports import Transport
transport = Transport(verify=False) wsdl1 = 'https://test-dilo.nfz.gov.pl/ws-broker-server-pkus-auth/services/Auth?wsdl' client = Client(wsdl=wsdl1, transport=transport, wsse=UsernameToken('username', 'password'))
Traceback:
File "C:/Users/j.zysko/gabinet/dilo/views_dilo.py", line 6, in
It would seem that I need a schema BEFORE actually creating the Client object?
My wsdl service is hosted on https The certificate on the IIS server is a self-signed certificate. I get this error from zeep.
The command I am running is
python -mzeep https://mysecureservice.svc?wsdl