Created
December 1, 2017 04:29
-
-
Save edgars/6c088dc75076666074ae269cd09f658a to your computer and use it in GitHub Desktop.
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
http:Response clientResponse = {}; | |
clientResponse, err = httpConnector.post("/SigepMasterJPA/AtendeClienteService/AtendeCliente", req); | |
println("Convertendo XML para JSON "); | |
var xmlRetornavel, _ = <xml> clientResponse.getXmlPayload(); | |
json respostaComoJSON = {"logradouro": xmlRetornavel.toJSON({})["soap:Envelope"]["soap:Body"]["ns2:consultaCEPResponse"]["return"]}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment