Skip to content

Commit

Permalink
create makefile to update wsdl files
Browse files Browse the repository at this point in the history
  • Loading branch information
jairhenrique committed Aug 29, 2017
1 parent 6e1decf commit adb41d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.PHONY: help

help: ## This help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

update-wsdl: ## Update wsdl files
@curl -o 'correios/wsdls/AtendeCliente-production.wsdl' 'https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl'
@curl -o 'correios/wsdls/AtendeCliente-test.wsdl' 'https://apphom.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl'
@curl -o 'correios/wsdls/Rastro.wsdl' 'https://webservice.correios.com.br/service/rastro/Rastro.wsdl'
@curl -o 'correios/wsdls/CalcPrecoPrazo.asmx' 'http://ws.correios.com.br/calculador/CalcPrecoPrazo.asmx?WSDL'
@curl -o 'correios/wsdls/Rastro_schema1.xsd' 'https://webservice.correios.com.br/service/rastro/Rastro_schema1.xsd'
8 changes: 4 additions & 4 deletions correios/wsdls/Rastro.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<xsd:import namespace="http://resource.webservice.correios.com.br/" schemaLocation="Rastro_schema1.xsd"/>
</xsd:schema>
</types>
<message name="buscaEventosListaResponse">
<part name="parameters" element="tns:buscaEventosListaResponse">
</part>
</message>
<message name="buscaEventosLista">
<part name="parameters" element="tns:buscaEventosLista">
</part>
Expand All @@ -13,10 +17,6 @@
<part name="parameters" element="tns:buscaEventosResponse">
</part>
</message>
<message name="buscaEventosListaResponse">
<part name="parameters" element="tns:buscaEventosListaResponse">
</part>
</message>
<message name="buscaEventos">
<part name="parameters" element="tns:buscaEventos">
</part>
Expand Down

0 comments on commit adb41d1

Please sign in to comment.