-
-
Save trfiladelfo/5962417e58b20fc788575411446917f9 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