-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8620bd6
commit b351aa3
Showing
8 changed files
with
213 additions
and
57 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/local | ||
./composer.lock | ||
/.idea | ||
/composer.lock |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:urn="urn:ATMWebSvr"> | ||
<soapenv:Body> | ||
<averbaCTe> | ||
<usuario>WS</usuario> | ||
<senha>usuario</senha> | ||
<codatm>sua_senha</codatm> | ||
<xmlCTe> | ||
xml | ||
</infCTeSupl> | ||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> | ||
<SignedInfo> | ||
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> | ||
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> | ||
<Reference URI="#CTe51220628125153000184570010000000831803406418"> | ||
<Transforms> | ||
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> | ||
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> | ||
</Transforms> | ||
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> | ||
<DigestValue>nwUjcJGlCmjRfnVM+c743OODCXo=</DigestValue> | ||
</Reference> | ||
</SignedInfo> | ||
<SignatureValue> | ||
V62qis3PiCULV0F9+qJmmPmXsRaBM0FFJW3rrAPHfyD7rRqDTTOZfG/ZDi82T0lqcRekg3JSkX38XcFWWnDcqwLPPCrGzKhCOUrxhUY2H0Gr3V5wuk6jaRu+5AOCmPwlZA6ngW8/Ika2Cz1Nl7VH+kK/wuVUAfJjxKpl6hi7qMoyu6QVipPWJwK5XzKTMbq8WiPdsPK/0yLXM2Mtv7haZjA1PeVaoyuODOzx/G8Esvg5ykX4Y8SgGT5seeQaj2pqto2lMTf/C9063OWhHe05PcEBa/TJvJV5TCXwM+zSltrt9dPGepWljjil3ofuB5487yw/wFPXKPh1FLArT6mcYA== | ||
</SignatureValue> | ||
<KeyInfo> | ||
<X509Data> | ||
<X509Certificate> | ||
MIIHsDCCBZigAwIBAgIIQ6nVc1U94wcwDQYJKoZIhvcNAQELBQAwczELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEXMBUGA1UEAxMOQUMgQ05ETCBSRkIgdjMwHhcNMjEwNzIxMTgyNDQ1WhcNMjIwNzIxMTgyNDQ1WjCCAQYxCzAJBgNVBAYTAkJSMRMwEQYDVQQKEwpJQ1AtQnJhc2lsMQswCQYDVQQIEwJNVDEbMBkGA1UEBxMSTFVDQVMgRE8gUklPIFZFUkRFMRcwFQYDVQQLEw4wOTExMjM5MDAwMDE2NjE2MDQGA1UECxMtU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgZG8gQnJhc2lsIC0gUkZCMRYwFAYDVQQLEw1SRkIgZS1DTlBKIEExMRMwEQYDVQQLEwpwcmVzZW5jaWFsMT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ificate> | ||
</X509Data> | ||
</KeyInfo> | ||
</Signature> | ||
</CTe> | ||
<protCTe versao="3.00"> | ||
<infProt> | ||
<tpAmb>1</tpAmb> | ||
<verAplic>3.00</verAplic> | ||
<chCTe>51220628125153000184570010000000831803406418</chCTe> | ||
<dhRecbto>2022-06-10T09:37:44-04:00</dhRecbto> | ||
<nProt>151220539988820</nProt> | ||
<digVal>nwUjcJGlCmjRfnVM+c743OODCXo=</digVal> | ||
<cStat>100</cStat> | ||
<xMotivo>Autorizado o uso da CT-e</xMotivo> | ||
</infProt> | ||
</protCTe> | ||
</cteProc>]]></xmlCTe></averbaCTe></soapenv:Body></soapenv:Envelope> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> | ||
<SOAP-ENV:Body> | ||
<ns1:averbaCTeResponse xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<Response> | ||
<Filial></Filial> | ||
<CNPJCli></CNPJCli> | ||
<Erros> | ||
<Erro> | ||
<Codigo>904</Codigo> | ||
<Descricao>Acesso nao autorizado</Descricao> | ||
</Erro> | ||
</Erros> | ||
</Response> | ||
</ns1:averbaCTeResponse> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope> | ||
|
||
<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope | ||
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> | ||
<SOAP-ENV:Body> | ||
<SOAP-ENV:Fault> | ||
<faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode> | ||
<faultactor xsi:type="xsd:string"></faultactor> | ||
<faultstring xsi:type="xsd:string">error in msg parsing: | ||
XML error parsing SOAP payload on line 4: Mismatched tag | ||
</faultstring> | ||
<detail xsi:type="xsd:string"></detail> | ||
</SOAP-ENV:Fault> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope> | ||
|
||
<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> | ||
<SOAP-ENV:Body> | ||
<ns1:averbaCTeResponse xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<Response> | ||
<Numero></Numero> | ||
<Serie></Serie> | ||
<Filial></Filial> | ||
<Erros> | ||
<Erro> | ||
<Codigo>912</Codigo> | ||
<Descricao>XML invalido para utilizacao neste webserver</Descricao> | ||
</Erro> | ||
</Erros> | ||
</Response> | ||
</ns1:averbaCTeResponse> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope> | ||
|
||
<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> | ||
<SOAP-ENV:Body> | ||
<ns1:averbaCTeResponse xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<Response> | ||
<Numero>83</Numero> | ||
<Serie>1</Serie> | ||
<Filial></Filial> | ||
<CNPJCli>28125153000184</CNPJCli> | ||
<TpDoc>2</TpDoc> | ||
<Averbado> | ||
<dhAverbacao>2022-06-10T12:04:25</dhAverbacao> | ||
<Protocolo>CUE4FQ52NI4XN47D18518D9Y6QQXS</Protocolo> | ||
<DadosSeguro> | ||
<NumeroAverbacao>0651310222812515300018457001000000083120</NumeroAverbacao> | ||
</DadosSeguro> | ||
</Averbado> | ||
<Infos> | ||
<Info> | ||
<Codigo>001</Codigo> | ||
<Descricao>Documento ja averbado</Descricao> | ||
</Info> | ||
</Infos> | ||
</Response> | ||
</ns1:averbaCTeResponse> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope> | ||
|
||
<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> | ||
<SOAP-ENV:Body> | ||
<ns1:averbaCTeResponse xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<Response> | ||
<Numero>1</Numero> | ||
<Serie>3</Serie> | ||
<Filial></Filial> | ||
<CNPJCli>14491024000103</CNPJCli> | ||
<TpDoc>6</TpDoc> | ||
<Erros> | ||
<Erro> | ||
<Codigo>033</Codigo> | ||
<Descricao>CNPJ emissor nao autorizado para averbar...</Descricao> | ||
<ValorInformado>014491024000103</ValorInformado> | ||
</Erro> | ||
</Erros> | ||
</Response> | ||
</ns1:averbaCTeResponse> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope> |
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
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
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
Oops, something went wrong.