Created
November 24, 2016 20:41
-
-
Save Iazzetta/6384645e450e3c336d638a335cae220e to your computer and use it in GitHub Desktop.
Zeep (wsdl/soap)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zeep import Client | |
from requests.auth import HTTPBasicAuth | |
from zeep.transports import Transport | |
import logging.config | |
logging.config.dictConfig({ | |
'version': 1, | |
'formatters': { | |
'verbose': { | |
'format': '%(name)s: %(message)s' | |
} | |
}, | |
'handlers': { | |
'console': { | |
'level': 'DEBUG', | |
'class': 'logging.StreamHandler', | |
'formatter': 'verbose', | |
}, | |
}, | |
'loggers': { | |
'zeep.transports': { | |
'level': 'DEBUG', | |
'propagate': True, | |
'handlers': ['console'], | |
}, | |
} | |
}) | |
client = Client('URL', transport=Transport(http_auth=HTTPBasicAuth("LOGIN", "SENHA"))) | |
result = client.service.GETSESSAO("LOGIN", "SENHA") |
Author
Iazzetta
commented
Nov 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment