Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2016 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a1f532d6a298f3c240aa7b68ea38c724 to your computer and use it in GitHub Desktop.
Save anonymous/a1f532d6a298f3c240aa7b68ea38c724 to your computer and use it in GitHub Desktop.
Exemplo curl webservice rastreamento correios
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