nfse-carioca 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/nfse_carioca.rb +4 -0
- data/lib/nfse_carioca/gerar_nfse.rb +4 -0
- data/lib/nfse_carioca/gerar_nfse_xml.rb +121 -85
- data/lib/nfse_carioca/version.rb +1 -1
- data/nfse_carioca.gemspec +3 -2
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_CancelarNFSe/_execute_/when_NFSeCarioca_rps_number_does_not_exist/returns_error_message.yml +4 -4
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_CancelarNFSe/_execute_/when_NFSeCarioca_rps_number_does_not_exist/returns_false.yml +4 -4
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_CancelarNFSe/_execute_/when_NFSeCarioca_rps_number_exist/returns_false.yml +8 -8
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_already_exist/responds_with_error.yml +14 -66
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_already_exist/responds_with_error_code_E10_.yml +248 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_already_exist/responds_with_error_message_E10_.yml +248 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_already_exist/responds_with_message_error_E10_.yml +14 -66
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_does_not_exist_yet/generates_NFSeCarioca.yml +22 -74
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NfseCarioca_has_only_the_minimum_values/generates_NfseCarioca.yml +20 -59
- data/spec/lib/nfse_carioca/cancelar_nfse_spec.rb +1 -9
- data/spec/lib/nfse_carioca/gerar_nfse_spec.rb +58 -52
- data/spec/spec_helper.rb +17 -0
- metadata +23 -8
- data/spec/support/helpers.rb +0 -21
@@ -0,0 +1,248 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://homologacao.notacarioca.rio.gov.br/WSNacional/nfse.asmx?wsdl
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- private, max-age=0
|
23
|
+
Content-Type:
|
24
|
+
- text/xml; charset=utf-8
|
25
|
+
Vary:
|
26
|
+
- Accept-Encoding
|
27
|
+
Server:
|
28
|
+
- Microsoft-IIS/7.5
|
29
|
+
X-Aspnet-Version:
|
30
|
+
- 4.0.30319
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Mon, 13 Apr 2015 21:19:23 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '1338'
|
37
|
+
body:
|
38
|
+
encoding: ASCII-8BIT
|
39
|
+
string: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:s=\"http://www.w3.org/2001/XMLSchema\"
|
40
|
+
xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\"
|
41
|
+
xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"http://notacarioca.rio.gov.br/\"
|
42
|
+
xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\"
|
43
|
+
xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" targetNamespace=\"http://notacarioca.rio.gov.br/\"
|
44
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
|
45
|
+
elementFormDefault=\"qualified\" targetNamespace=\"http://notacarioca.rio.gov.br/\">\r\n
|
46
|
+
\ <s:element name=\"ConsultarNfseRequest\">\r\n <s:complexType>\r\n
|
47
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
48
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
49
|
+
\ </s:element>\r\n <s:element name=\"ConsultarNfseResponse\">\r\n
|
50
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
51
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
52
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
53
|
+
\ <s:element name=\"ConsultarNfsePorRpsRequest\">\r\n <s:complexType>\r\n
|
54
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
55
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
56
|
+
\ </s:element>\r\n <s:element name=\"ConsultarNfsePorRpsResponse\">\r\n
|
57
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
58
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
59
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
60
|
+
\ <s:element name=\"ConsultarLoteRpsRequest\">\r\n <s:complexType>\r\n
|
61
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
62
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
63
|
+
\ </s:element>\r\n <s:element name=\"ConsultarLoteRpsResponse\">\r\n
|
64
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
65
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
66
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
67
|
+
\ <s:element name=\"ConsultarSituacaoLoteRpsRequest\">\r\n <s:complexType>\r\n
|
68
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
69
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
70
|
+
\ </s:element>\r\n <s:element name=\"ConsultarSituacaoLoteRpsResponse\">\r\n
|
71
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
72
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
73
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
74
|
+
\ <s:element name=\"RecepcionarLoteRpsRequest\">\r\n <s:complexType>\r\n
|
75
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
76
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
77
|
+
\ </s:element>\r\n <s:element name=\"RecepcionarLoteRpsResponse\">\r\n
|
78
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
79
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
80
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
81
|
+
\ <s:element name=\"CancelarNfseRequest\">\r\n <s:complexType>\r\n
|
82
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
83
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
84
|
+
\ </s:element>\r\n <s:element name=\"CancelarNfseResponse\">\r\n
|
85
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
86
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
87
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
88
|
+
\ <s:element name=\"GerarNfseRequest\">\r\n <s:complexType>\r\n
|
89
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
90
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
91
|
+
\ </s:element>\r\n <s:element name=\"GerarNfseResponse\">\r\n <s:complexType>\r\n
|
92
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
93
|
+
name=\"outputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
94
|
+
\ </s:element>\r\n </s:schema>\r\n </wsdl:types>\r\n <wsdl:message
|
95
|
+
name=\"ConsultarNfseSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfseRequest\"
|
96
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarNfseSoapOut\">\r\n
|
97
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfseResponse\" />\r\n
|
98
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"ConsultarNfsePorRpsSoapIn\">\r\n
|
99
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfsePorRpsRequest\"
|
100
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarNfsePorRpsSoapOut\">\r\n
|
101
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfsePorRpsResponse\"
|
102
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarLoteRpsSoapIn\">\r\n
|
103
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarLoteRpsRequest\"
|
104
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarLoteRpsSoapOut\">\r\n
|
105
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarLoteRpsResponse\"
|
106
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarSituacaoLoteRpsSoapIn\">\r\n
|
107
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarSituacaoLoteRpsRequest\"
|
108
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarSituacaoLoteRpsSoapOut\">\r\n
|
109
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarSituacaoLoteRpsResponse\"
|
110
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"RecepcionarLoteRpsSoapIn\">\r\n
|
111
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:RecepcionarLoteRpsRequest\"
|
112
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"RecepcionarLoteRpsSoapOut\">\r\n
|
113
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:RecepcionarLoteRpsResponse\"
|
114
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"CancelarNfseSoapIn\">\r\n
|
115
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:CancelarNfseRequest\" />\r\n
|
116
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"CancelarNfseSoapOut\">\r\n <wsdl:part
|
117
|
+
name=\"parameters\" element=\"tns:CancelarNfseResponse\" />\r\n </wsdl:message>\r\n
|
118
|
+
\ <wsdl:message name=\"GerarNfseSoapIn\">\r\n <wsdl:part name=\"parameters\"
|
119
|
+
element=\"tns:GerarNfseRequest\" />\r\n </wsdl:message>\r\n <wsdl:message
|
120
|
+
name=\"GerarNfseSoapOut\">\r\n <wsdl:part name=\"parameters\" element=\"tns:GerarNfseResponse\"
|
121
|
+
/>\r\n </wsdl:message>\r\n <wsdl:portType name=\"NfseSoap\">\r\n <wsdl:operation
|
122
|
+
name=\"ConsultarNfse\">\r\n <wsdl:input message=\"tns:ConsultarNfseSoapIn\"
|
123
|
+
/>\r\n <wsdl:output message=\"tns:ConsultarNfseSoapOut\" />\r\n </wsdl:operation>\r\n
|
124
|
+
\ <wsdl:operation name=\"ConsultarNfsePorRps\">\r\n <wsdl:input message=\"tns:ConsultarNfsePorRpsSoapIn\"
|
125
|
+
/>\r\n <wsdl:output message=\"tns:ConsultarNfsePorRpsSoapOut\" />\r\n
|
126
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"ConsultarLoteRps\">\r\n
|
127
|
+
\ <wsdl:input message=\"tns:ConsultarLoteRpsSoapIn\" />\r\n <wsdl:output
|
128
|
+
message=\"tns:ConsultarLoteRpsSoapOut\" />\r\n </wsdl:operation>\r\n <wsdl:operation
|
129
|
+
name=\"ConsultarSituacaoLoteRps\">\r\n <wsdl:input message=\"tns:ConsultarSituacaoLoteRpsSoapIn\"
|
130
|
+
/>\r\n <wsdl:output message=\"tns:ConsultarSituacaoLoteRpsSoapOut\" />\r\n
|
131
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"RecepcionarLoteRps\">\r\n
|
132
|
+
\ <wsdl:input message=\"tns:RecepcionarLoteRpsSoapIn\" />\r\n <wsdl:output
|
133
|
+
message=\"tns:RecepcionarLoteRpsSoapOut\" />\r\n </wsdl:operation>\r\n
|
134
|
+
\ <wsdl:operation name=\"CancelarNfse\">\r\n <wsdl:input message=\"tns:CancelarNfseSoapIn\"
|
135
|
+
/>\r\n <wsdl:output message=\"tns:CancelarNfseSoapOut\" />\r\n </wsdl:operation>\r\n
|
136
|
+
\ <wsdl:operation name=\"GerarNfse\">\r\n <wsdl:input message=\"tns:GerarNfseSoapIn\"
|
137
|
+
/>\r\n <wsdl:output message=\"tns:GerarNfseSoapOut\" />\r\n </wsdl:operation>\r\n
|
138
|
+
\ </wsdl:portType>\r\n <wsdl:binding name=\"NfseSoap\" type=\"tns:NfseSoap\">\r\n
|
139
|
+
\ <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
|
140
|
+
\ <wsdl:operation name=\"ConsultarNfse\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarNfse\"
|
141
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
142
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
143
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
144
|
+
name=\"ConsultarNfsePorRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarNfsePorRps\"
|
145
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
146
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
147
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
148
|
+
name=\"ConsultarLoteRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarLoteRps\"
|
149
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
150
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
151
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
152
|
+
name=\"ConsultarSituacaoLoteRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarSituacaoLoteRps\"
|
153
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
154
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
155
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
156
|
+
name=\"RecepcionarLoteRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/RecepcionarLoteRps\"
|
157
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
158
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
159
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
160
|
+
name=\"CancelarNfse\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/CancelarNfse\"
|
161
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
162
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
163
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
164
|
+
name=\"GerarNfse\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/GerarNfse\"
|
165
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
166
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
167
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
168
|
+
\ <wsdl:service name=\"Nfse\">\r\n <wsdl:port name=\"NfseSoap\" binding=\"tns:NfseSoap\">\r\n
|
169
|
+
\ <soap:address location=\"https://homologacao.notacarioca.rio.gov.br/WSNacional/nfse.asmx\"
|
170
|
+
/>\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
|
171
|
+
http_version:
|
172
|
+
recorded_at: Mon, 13 Apr 2015 21:19:21 GMT
|
173
|
+
- request:
|
174
|
+
method: post
|
175
|
+
uri: https://homologacao.notacarioca.rio.gov.br/WSNacional/nfse.asmx
|
176
|
+
body:
|
177
|
+
encoding: UTF-8
|
178
|
+
string: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
179
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://notacarioca.rio.gov.br/"
|
180
|
+
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GerarNfseRequest><inputXML><GerarNfseEnvio
|
181
|
+
xmlns="http://notacarioca.rio.gov.br/WSNacional/XSD/1/nfse_pcrj_v01.xsd"><Rps><InfRps
|
182
|
+
xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd" Id="1030"><IdentificacaoRps><Numero>1030</Numero><Serie>A</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2015-04-13T18:19:15</DataEmissao><NaturezaOperacao>1</NaturezaOperacao><OptanteSimplesNacional>1</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>12.0</ValorServicos><ValorPis>0</ValorPis><ValorCofins>0</ValorCofins><ValorInss>0</ValorInss><ValorIr>0</ValorIr><ValorCsll>0</ValorCsll><IssRetido>2</IssRetido><ValorIss>0</ValorIss><Aliquota>0</Aliquota></Valores><ItemListaServico>0105</ItemListaServico><CodigoTributacaoMunicipio>010501</CodigoTributacaoMunicipio><Discriminacao>Venda
|
183
|
+
do Serviço XYZ.</Discriminacao><CodigoMunicipio>3304557</CodigoMunicipio></Servico><Prestador><Cnpj>12390095000186</Cnpj><InscricaoMunicipal>04807995</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cnpj>98924674000187</Cnpj></CpfCnpj></IdentificacaoTomador><RazaoSocial>XPTO
|
184
|
+
Tecnologia Ltda.</RazaoSocial><Endereco><Endereco>Rua qualquer
|
185
|
+
nome</Endereco><Numero>33</Numero><Complemento>Sala
|
186
|
+
1</Complemento><Bairro>Seu bairro</Bairro><CodigoMunicipio>3550308</CodigoMunicipio><Uf>SP</Uf><Cep>22255777</Cep></Endereco><Contato><Telefone>2222-2222</Telefone><Email>customer@example.com</Email></Contato></Tomador></InfRps></Rps></GerarNfseEnvio></inputXML></GerarNfseRequest></soap:Body></soap:Envelope>
|
187
|
+
headers:
|
188
|
+
Soapaction:
|
189
|
+
- '"http://notacarioca.rio.gov.br/GerarNfse"'
|
190
|
+
Content-Type:
|
191
|
+
- text/xml;charset=UTF-8
|
192
|
+
Content-Length:
|
193
|
+
- '2420'
|
194
|
+
Accept-Encoding:
|
195
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
196
|
+
Accept:
|
197
|
+
- "*/*"
|
198
|
+
User-Agent:
|
199
|
+
- Ruby
|
200
|
+
response:
|
201
|
+
status:
|
202
|
+
code: 200
|
203
|
+
message: OK
|
204
|
+
headers:
|
205
|
+
Cache-Control:
|
206
|
+
- private, max-age=0
|
207
|
+
Content-Type:
|
208
|
+
- text/xml; charset=utf-8
|
209
|
+
Vary:
|
210
|
+
- Accept-Encoding
|
211
|
+
Server:
|
212
|
+
- Microsoft-IIS/7.5
|
213
|
+
X-Aspnet-Version:
|
214
|
+
- 4.0.30319
|
215
|
+
X-Powered-By:
|
216
|
+
- ASP.NET
|
217
|
+
Date:
|
218
|
+
- Mon, 13 Apr 2015 21:19:24 GMT
|
219
|
+
Content-Length:
|
220
|
+
- '575'
|
221
|
+
body:
|
222
|
+
encoding: ASCII-8BIT
|
223
|
+
string: !binary |-
|
224
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c29hcDpF
|
225
|
+
bnZlbG9wZSB4bWxuczpzb2FwPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9y
|
226
|
+
Zy9zb2FwL2VudmVsb3BlLyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9y
|
227
|
+
Zy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM6eHNkPSJodHRwOi8v
|
228
|
+
d3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSI+PHNvYXA6Qm9keT48R2VyYXJO
|
229
|
+
ZnNlUmVzcG9uc2UgeG1sbnM9Imh0dHA6Ly9ub3RhY2FyaW9jYS5yaW8uZ292
|
230
|
+
LmJyLyI+PG91dHB1dFhNTD4mbHQ7R2VyYXJOZnNlUmVzcG9zdGEgeG1sbnM6
|
231
|
+
eHNkPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIgeG1sbnM6
|
232
|
+
eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5j
|
233
|
+
ZSIgeG1sbnM9Imh0dHA6Ly9ub3RhY2FyaW9jYS5yaW8uZ292LmJyL1dTTmFj
|
234
|
+
aW9uYWwvWFNELzEvbmZzZV9wY3JqX3YwMS54c2QiJmd0OyZsdDtMaXN0YU1l
|
235
|
+
bnNhZ2VtUmV0b3JubyB4bWxucz0iaHR0cDovL3d3dy5hYnJhc2Yub3JnLmJy
|
236
|
+
L0FCUkFTRi9hcnF1aXZvcy9uZnNlLnhzZCImZ3Q7Jmx0O01lbnNhZ2VtUmV0
|
237
|
+
b3JubyZndDsmbHQ7Q29kaWdvJmd0O0UxMCZsdDsvQ29kaWdvJmd0OyZsdDtN
|
238
|
+
ZW5zYWdlbSZndDtSUFMgasOhIGluZm9ybWFkby4mbHQ7L01lbnNhZ2VtJmd0
|
239
|
+
OyZsdDtDb3JyZWNhbyZndDtQYXJhIGVzc2EgSW5zY3Jpw6fDo28gTXVuaWNp
|
240
|
+
cGFsL0NOUEogasOhIGV4aXN0ZSB1bSBSUFMgaW5mb3JtYWRvIGNvbSBvIG1l
|
241
|
+
c21vIG7Dum1lcm8sIHPDqXJpZSBlIHRpcG8uJmx0Oy9Db3JyZWNhbyZndDsm
|
242
|
+
bHQ7L01lbnNhZ2VtUmV0b3JubyZndDsmbHQ7L0xpc3RhTWVuc2FnZW1SZXRv
|
243
|
+
cm5vJmd0OyZsdDsvR2VyYXJOZnNlUmVzcG9zdGEmZ3Q7PC9vdXRwdXRYTUw+
|
244
|
+
PC9HZXJhck5mc2VSZXNwb25zZT48L3NvYXA6Qm9keT48L3NvYXA6RW52ZWxv
|
245
|
+
cGU+
|
246
|
+
http_version:
|
247
|
+
recorded_at: Mon, 13 Apr 2015 21:19:22 GMT
|
248
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,248 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://homologacao.notacarioca.rio.gov.br/WSNacional/nfse.asmx?wsdl
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- private, max-age=0
|
23
|
+
Content-Type:
|
24
|
+
- text/xml; charset=utf-8
|
25
|
+
Vary:
|
26
|
+
- Accept-Encoding
|
27
|
+
Server:
|
28
|
+
- Microsoft-IIS/7.5
|
29
|
+
X-Aspnet-Version:
|
30
|
+
- 4.0.30319
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Mon, 13 Apr 2015 21:19:24 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '1338'
|
37
|
+
body:
|
38
|
+
encoding: ASCII-8BIT
|
39
|
+
string: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:s=\"http://www.w3.org/2001/XMLSchema\"
|
40
|
+
xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\"
|
41
|
+
xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"http://notacarioca.rio.gov.br/\"
|
42
|
+
xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\"
|
43
|
+
xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" targetNamespace=\"http://notacarioca.rio.gov.br/\"
|
44
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
|
45
|
+
elementFormDefault=\"qualified\" targetNamespace=\"http://notacarioca.rio.gov.br/\">\r\n
|
46
|
+
\ <s:element name=\"ConsultarNfseRequest\">\r\n <s:complexType>\r\n
|
47
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
48
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
49
|
+
\ </s:element>\r\n <s:element name=\"ConsultarNfseResponse\">\r\n
|
50
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
51
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
52
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
53
|
+
\ <s:element name=\"ConsultarNfsePorRpsRequest\">\r\n <s:complexType>\r\n
|
54
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
55
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
56
|
+
\ </s:element>\r\n <s:element name=\"ConsultarNfsePorRpsResponse\">\r\n
|
57
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
58
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
59
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
60
|
+
\ <s:element name=\"ConsultarLoteRpsRequest\">\r\n <s:complexType>\r\n
|
61
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
62
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
63
|
+
\ </s:element>\r\n <s:element name=\"ConsultarLoteRpsResponse\">\r\n
|
64
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
65
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
66
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
67
|
+
\ <s:element name=\"ConsultarSituacaoLoteRpsRequest\">\r\n <s:complexType>\r\n
|
68
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
69
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
70
|
+
\ </s:element>\r\n <s:element name=\"ConsultarSituacaoLoteRpsResponse\">\r\n
|
71
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
72
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
73
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
74
|
+
\ <s:element name=\"RecepcionarLoteRpsRequest\">\r\n <s:complexType>\r\n
|
75
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
76
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
77
|
+
\ </s:element>\r\n <s:element name=\"RecepcionarLoteRpsResponse\">\r\n
|
78
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
79
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
80
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
81
|
+
\ <s:element name=\"CancelarNfseRequest\">\r\n <s:complexType>\r\n
|
82
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
83
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
84
|
+
\ </s:element>\r\n <s:element name=\"CancelarNfseResponse\">\r\n
|
85
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
86
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"outputXML\" type=\"s:string\" />\r\n
|
87
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
88
|
+
\ <s:element name=\"GerarNfseRequest\">\r\n <s:complexType>\r\n
|
89
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
90
|
+
name=\"inputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
91
|
+
\ </s:element>\r\n <s:element name=\"GerarNfseResponse\">\r\n <s:complexType>\r\n
|
92
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
93
|
+
name=\"outputXML\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
|
94
|
+
\ </s:element>\r\n </s:schema>\r\n </wsdl:types>\r\n <wsdl:message
|
95
|
+
name=\"ConsultarNfseSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfseRequest\"
|
96
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarNfseSoapOut\">\r\n
|
97
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfseResponse\" />\r\n
|
98
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"ConsultarNfsePorRpsSoapIn\">\r\n
|
99
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfsePorRpsRequest\"
|
100
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarNfsePorRpsSoapOut\">\r\n
|
101
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarNfsePorRpsResponse\"
|
102
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarLoteRpsSoapIn\">\r\n
|
103
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarLoteRpsRequest\"
|
104
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarLoteRpsSoapOut\">\r\n
|
105
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarLoteRpsResponse\"
|
106
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarSituacaoLoteRpsSoapIn\">\r\n
|
107
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarSituacaoLoteRpsRequest\"
|
108
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"ConsultarSituacaoLoteRpsSoapOut\">\r\n
|
109
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:ConsultarSituacaoLoteRpsResponse\"
|
110
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"RecepcionarLoteRpsSoapIn\">\r\n
|
111
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:RecepcionarLoteRpsRequest\"
|
112
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"RecepcionarLoteRpsSoapOut\">\r\n
|
113
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:RecepcionarLoteRpsResponse\"
|
114
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"CancelarNfseSoapIn\">\r\n
|
115
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:CancelarNfseRequest\" />\r\n
|
116
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"CancelarNfseSoapOut\">\r\n <wsdl:part
|
117
|
+
name=\"parameters\" element=\"tns:CancelarNfseResponse\" />\r\n </wsdl:message>\r\n
|
118
|
+
\ <wsdl:message name=\"GerarNfseSoapIn\">\r\n <wsdl:part name=\"parameters\"
|
119
|
+
element=\"tns:GerarNfseRequest\" />\r\n </wsdl:message>\r\n <wsdl:message
|
120
|
+
name=\"GerarNfseSoapOut\">\r\n <wsdl:part name=\"parameters\" element=\"tns:GerarNfseResponse\"
|
121
|
+
/>\r\n </wsdl:message>\r\n <wsdl:portType name=\"NfseSoap\">\r\n <wsdl:operation
|
122
|
+
name=\"ConsultarNfse\">\r\n <wsdl:input message=\"tns:ConsultarNfseSoapIn\"
|
123
|
+
/>\r\n <wsdl:output message=\"tns:ConsultarNfseSoapOut\" />\r\n </wsdl:operation>\r\n
|
124
|
+
\ <wsdl:operation name=\"ConsultarNfsePorRps\">\r\n <wsdl:input message=\"tns:ConsultarNfsePorRpsSoapIn\"
|
125
|
+
/>\r\n <wsdl:output message=\"tns:ConsultarNfsePorRpsSoapOut\" />\r\n
|
126
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"ConsultarLoteRps\">\r\n
|
127
|
+
\ <wsdl:input message=\"tns:ConsultarLoteRpsSoapIn\" />\r\n <wsdl:output
|
128
|
+
message=\"tns:ConsultarLoteRpsSoapOut\" />\r\n </wsdl:operation>\r\n <wsdl:operation
|
129
|
+
name=\"ConsultarSituacaoLoteRps\">\r\n <wsdl:input message=\"tns:ConsultarSituacaoLoteRpsSoapIn\"
|
130
|
+
/>\r\n <wsdl:output message=\"tns:ConsultarSituacaoLoteRpsSoapOut\" />\r\n
|
131
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"RecepcionarLoteRps\">\r\n
|
132
|
+
\ <wsdl:input message=\"tns:RecepcionarLoteRpsSoapIn\" />\r\n <wsdl:output
|
133
|
+
message=\"tns:RecepcionarLoteRpsSoapOut\" />\r\n </wsdl:operation>\r\n
|
134
|
+
\ <wsdl:operation name=\"CancelarNfse\">\r\n <wsdl:input message=\"tns:CancelarNfseSoapIn\"
|
135
|
+
/>\r\n <wsdl:output message=\"tns:CancelarNfseSoapOut\" />\r\n </wsdl:operation>\r\n
|
136
|
+
\ <wsdl:operation name=\"GerarNfse\">\r\n <wsdl:input message=\"tns:GerarNfseSoapIn\"
|
137
|
+
/>\r\n <wsdl:output message=\"tns:GerarNfseSoapOut\" />\r\n </wsdl:operation>\r\n
|
138
|
+
\ </wsdl:portType>\r\n <wsdl:binding name=\"NfseSoap\" type=\"tns:NfseSoap\">\r\n
|
139
|
+
\ <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
|
140
|
+
\ <wsdl:operation name=\"ConsultarNfse\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarNfse\"
|
141
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
142
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
143
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
144
|
+
name=\"ConsultarNfsePorRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarNfsePorRps\"
|
145
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
146
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
147
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
148
|
+
name=\"ConsultarLoteRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarLoteRps\"
|
149
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
150
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
151
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
152
|
+
name=\"ConsultarSituacaoLoteRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/ConsultarSituacaoLoteRps\"
|
153
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
154
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
155
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
156
|
+
name=\"RecepcionarLoteRps\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/RecepcionarLoteRps\"
|
157
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
158
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
159
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
160
|
+
name=\"CancelarNfse\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/CancelarNfse\"
|
161
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
162
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
163
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
164
|
+
name=\"GerarNfse\">\r\n <soap:operation soapAction=\"http://notacarioca.rio.gov.br/GerarNfse\"
|
165
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
166
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
167
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
168
|
+
\ <wsdl:service name=\"Nfse\">\r\n <wsdl:port name=\"NfseSoap\" binding=\"tns:NfseSoap\">\r\n
|
169
|
+
\ <soap:address location=\"https://homologacao.notacarioca.rio.gov.br/WSNacional/nfse.asmx\"
|
170
|
+
/>\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
|
171
|
+
http_version:
|
172
|
+
recorded_at: Mon, 13 Apr 2015 21:19:23 GMT
|
173
|
+
- request:
|
174
|
+
method: post
|
175
|
+
uri: https://homologacao.notacarioca.rio.gov.br/WSNacional/nfse.asmx
|
176
|
+
body:
|
177
|
+
encoding: UTF-8
|
178
|
+
string: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
179
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://notacarioca.rio.gov.br/"
|
180
|
+
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GerarNfseRequest><inputXML><GerarNfseEnvio
|
181
|
+
xmlns="http://notacarioca.rio.gov.br/WSNacional/XSD/1/nfse_pcrj_v01.xsd"><Rps><InfRps
|
182
|
+
xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd" Id="1030"><IdentificacaoRps><Numero>1030</Numero><Serie>A</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2015-04-13T18:19:22</DataEmissao><NaturezaOperacao>1</NaturezaOperacao><OptanteSimplesNacional>1</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>12.0</ValorServicos><ValorPis>0</ValorPis><ValorCofins>0</ValorCofins><ValorInss>0</ValorInss><ValorIr>0</ValorIr><ValorCsll>0</ValorCsll><IssRetido>2</IssRetido><ValorIss>0</ValorIss><Aliquota>0</Aliquota></Valores><ItemListaServico>0105</ItemListaServico><CodigoTributacaoMunicipio>010501</CodigoTributacaoMunicipio><Discriminacao>Venda
|
183
|
+
do Serviço XYZ.</Discriminacao><CodigoMunicipio>3304557</CodigoMunicipio></Servico><Prestador><Cnpj>12390095000186</Cnpj><InscricaoMunicipal>04807995</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cnpj>98924674000187</Cnpj></CpfCnpj></IdentificacaoTomador><RazaoSocial>XPTO
|
184
|
+
Tecnologia Ltda.</RazaoSocial><Endereco><Endereco>Rua qualquer
|
185
|
+
nome</Endereco><Numero>33</Numero><Complemento>Sala
|
186
|
+
1</Complemento><Bairro>Seu bairro</Bairro><CodigoMunicipio>3550308</CodigoMunicipio><Uf>SP</Uf><Cep>22255777</Cep></Endereco><Contato><Telefone>2222-2222</Telefone><Email>customer@example.com</Email></Contato></Tomador></InfRps></Rps></GerarNfseEnvio></inputXML></GerarNfseRequest></soap:Body></soap:Envelope>
|
187
|
+
headers:
|
188
|
+
Soapaction:
|
189
|
+
- '"http://notacarioca.rio.gov.br/GerarNfse"'
|
190
|
+
Content-Type:
|
191
|
+
- text/xml;charset=UTF-8
|
192
|
+
Content-Length:
|
193
|
+
- '2420'
|
194
|
+
Accept-Encoding:
|
195
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
196
|
+
Accept:
|
197
|
+
- "*/*"
|
198
|
+
User-Agent:
|
199
|
+
- Ruby
|
200
|
+
response:
|
201
|
+
status:
|
202
|
+
code: 200
|
203
|
+
message: OK
|
204
|
+
headers:
|
205
|
+
Cache-Control:
|
206
|
+
- private, max-age=0
|
207
|
+
Content-Type:
|
208
|
+
- text/xml; charset=utf-8
|
209
|
+
Vary:
|
210
|
+
- Accept-Encoding
|
211
|
+
Server:
|
212
|
+
- Microsoft-IIS/7.5
|
213
|
+
X-Aspnet-Version:
|
214
|
+
- 4.0.30319
|
215
|
+
X-Powered-By:
|
216
|
+
- ASP.NET
|
217
|
+
Date:
|
218
|
+
- Mon, 13 Apr 2015 21:19:25 GMT
|
219
|
+
Content-Length:
|
220
|
+
- '575'
|
221
|
+
body:
|
222
|
+
encoding: ASCII-8BIT
|
223
|
+
string: !binary |-
|
224
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c29hcDpF
|
225
|
+
bnZlbG9wZSB4bWxuczpzb2FwPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9y
|
226
|
+
Zy9zb2FwL2VudmVsb3BlLyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9y
|
227
|
+
Zy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM6eHNkPSJodHRwOi8v
|
228
|
+
d3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSI+PHNvYXA6Qm9keT48R2VyYXJO
|
229
|
+
ZnNlUmVzcG9uc2UgeG1sbnM9Imh0dHA6Ly9ub3RhY2FyaW9jYS5yaW8uZ292
|
230
|
+
LmJyLyI+PG91dHB1dFhNTD4mbHQ7R2VyYXJOZnNlUmVzcG9zdGEgeG1sbnM6
|
231
|
+
eHNkPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIgeG1sbnM6
|
232
|
+
eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5j
|
233
|
+
ZSIgeG1sbnM9Imh0dHA6Ly9ub3RhY2FyaW9jYS5yaW8uZ292LmJyL1dTTmFj
|
234
|
+
aW9uYWwvWFNELzEvbmZzZV9wY3JqX3YwMS54c2QiJmd0OyZsdDtMaXN0YU1l
|
235
|
+
bnNhZ2VtUmV0b3JubyB4bWxucz0iaHR0cDovL3d3dy5hYnJhc2Yub3JnLmJy
|
236
|
+
L0FCUkFTRi9hcnF1aXZvcy9uZnNlLnhzZCImZ3Q7Jmx0O01lbnNhZ2VtUmV0
|
237
|
+
b3JubyZndDsmbHQ7Q29kaWdvJmd0O0UxMCZsdDsvQ29kaWdvJmd0OyZsdDtN
|
238
|
+
ZW5zYWdlbSZndDtSUFMgasOhIGluZm9ybWFkby4mbHQ7L01lbnNhZ2VtJmd0
|
239
|
+
OyZsdDtDb3JyZWNhbyZndDtQYXJhIGVzc2EgSW5zY3Jpw6fDo28gTXVuaWNp
|
240
|
+
cGFsL0NOUEogasOhIGV4aXN0ZSB1bSBSUFMgaW5mb3JtYWRvIGNvbSBvIG1l
|
241
|
+
c21vIG7Dum1lcm8sIHPDqXJpZSBlIHRpcG8uJmx0Oy9Db3JyZWNhbyZndDsm
|
242
|
+
bHQ7L01lbnNhZ2VtUmV0b3JubyZndDsmbHQ7L0xpc3RhTWVuc2FnZW1SZXRv
|
243
|
+
cm5vJmd0OyZsdDsvR2VyYXJOZnNlUmVzcG9zdGEmZ3Q7PC9vdXRwdXRYTUw+
|
244
|
+
PC9HZXJhck5mc2VSZXNwb25zZT48L3NvYXA6Qm9keT48L3NvYXA6RW52ZWxv
|
245
|
+
cGU+
|
246
|
+
http_version:
|
247
|
+
recorded_at: Mon, 13 Apr 2015 21:19:24 GMT
|
248
|
+
recorded_with: VCR 2.9.3
|