Created
June 15, 2016 20:30
-
-
Save anonymous/a1f532d6a298f3c240aa7b68ea38c724 to your computer and use it in GitHub Desktop.
Exemplo curl webservice rastreamento correios
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
curl -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction: \"http://resource.webservice.correios.com.br/buscaEventos\"" --data " | |
<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:res=\"http://resource.webservice.correios.com.br/\"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<res:buscaEventos> | |
<usuario></usuario> | |
<senha></senha> | |
<tipo>L</tipo> | |
<resultado>T</resultado> | |
<lingua>101</lingua> | |
<objetos></objetos> | |
</res:buscaEventos> | |
</soapenv:Body> | |
</soapenv:Envelope> | |
" -X POST http://webservice.correios.com.br/service/rastro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment