Created
October 11, 2017 03:37
-
-
Save anonymous/04cd511c57c573313c486d045841494c to your computer and use it in GitHub Desktop.
SOAP, zeep
This file contains hidden or 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, helpers | |
| client = Client('https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl') | |
| resp = client.service.consultaCEP('06694720') | |
| resp = helpers.serialize_object(resp) | |
| resp = {k: resp[k] for k in resp} | |
| print(resp) | |
| client = Client('http://www.webservicex.com/globalweather.asmx?wsdl') | |
| resp = client.service.GetCitiesByCountry('New York') | |
| resp = helpers.serialize_object(resp) | |
| #resp = {k: resp[k] for k in resp} | |
| print(resp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment