nfse-carioca 0.0.1 → 0.1.0
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/Berksfile +6 -0
- data/Berksfile.lock +28 -0
- data/README.md +1 -0
- data/Rakefile +3 -7
- data/Vagrantfile +58 -0
- data/lib/nfse_carioca.rb +5 -12
- data/lib/nfse_carioca/cancelar_nfse.rb +28 -22
- data/lib/nfse_carioca/client.rb +31 -0
- data/lib/nfse_carioca/configuration.rb +49 -7
- data/lib/nfse_carioca/gerar_nfse.rb +14 -23
- data/lib/nfse_carioca/gerar_nfse_xml.rb +49 -103
- data/lib/nfse_carioca/response.rb +27 -0
- data/lib/nfse_carioca/version.rb +2 -2
- data/nfse_carioca.gemspec +4 -4
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_CancelarNFSe/_execute_/when_NFSeCarioca_rps_number_does_not_exist/returns_error_message.yml +253 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_CancelarNFSe/_execute_/when_NFSeCarioca_rps_number_does_not_exist/returns_false.yml +253 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_CancelarNFSe/_execute_/when_NFSeCarioca_rps_number_exist/returns_false.yml +238 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_already_exist/responds_with_error.yml +296 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_already_exist/responds_with_message_error_E10_.yml +296 -0
- data/spec/fixtures/vcr_cassettes/NFSeCarioca_GerarNFSe/_call/when_NFSeCarioca_rps_number_does_not_exist_yet/generates_NFSeCarioca.yml +340 -0
- data/spec/lib/nfse_carioca/cancelar_nfse_spec.rb +13 -21
- data/spec/lib/nfse_carioca/configuration_spec.rb +26 -26
- data/spec/lib/nfse_carioca/gerar_nfse_spec.rb +31 -34
- data/spec/spec_helper.rb +7 -0
- metadata +40 -38
- data/CHANGELOG.md +0 -7
- data/CONTRIBUTING.md +0 -35
- data/lib/nfse_carioca/cancelar_nfse_xml.rb +0 -31
- data/lib/nfse_carioca/models/address.rb +0 -13
- data/lib/nfse_carioca/models/customer.rb +0 -15
- data/lib/nfse_carioca/models/invoice.rb +0 -14
- data/lib/nfse_carioca/models/provider.rb +0 -9
- data/lib/nfse_carioca/nota_carioca_client.rb +0 -31
- data/lib/nfse_carioca/nota_carioca_response.rb +0 -20
@@ -0,0 +1,27 @@
|
|
1
|
+
module NfseCarioca
|
2
|
+
class Response
|
3
|
+
def initialize(payload)
|
4
|
+
@payload = payload
|
5
|
+
end
|
6
|
+
|
7
|
+
def content
|
8
|
+
@content ||= output["#{class_name}Resposta"]
|
9
|
+
end
|
10
|
+
|
11
|
+
def class_name
|
12
|
+
self.class.to_s.split("::")[1]
|
13
|
+
end
|
14
|
+
|
15
|
+
def success?
|
16
|
+
!error?
|
17
|
+
end
|
18
|
+
|
19
|
+
def error?
|
20
|
+
!!content["ListaMensagemRetorno"]
|
21
|
+
end
|
22
|
+
|
23
|
+
def output
|
24
|
+
@output ||= Nori.new.parse @payload.body.values.first[:output_xml]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/nfse_carioca/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0
|
1
|
+
module NfseCarioca
|
2
|
+
VERSION = "0.1.0"
|
3
3
|
end
|
data/nfse_carioca.gemspec
CHANGED
@@ -4,7 +4,7 @@ require "nfse_carioca/version"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "nfse-carioca"
|
7
|
-
s.version =
|
7
|
+
s.version = NfseCarioca::VERSION
|
8
8
|
s.authors = ["LUZ Planilhas"]
|
9
9
|
s.email = ["bruno@luz.vc"]
|
10
10
|
s.summary = %q{Nota Fiscal de Serviço Eletronica}
|
@@ -16,13 +16,13 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_dependency "savon"
|
20
|
-
s.add_dependency "virtus", "~> 1.0.4"
|
19
|
+
s.add_dependency "savon", "~> 2.9.0"
|
21
20
|
s.add_dependency "builder", "~> 3.2.2"
|
22
|
-
s.add_dependency "activesupport", "~> 4.1"
|
23
21
|
|
24
22
|
s.add_development_dependency "bundler", "~> 1.7"
|
25
23
|
s.add_development_dependency "rake", "~> 10.0"
|
26
24
|
s.add_development_dependency "rspec"
|
27
25
|
s.add_development_dependency "pry"
|
26
|
+
s.add_development_dependency "vcr"
|
27
|
+
s.add_development_dependency "webmock"
|
28
28
|
end
|
@@ -0,0 +1,253 @@
|
|
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
|
+
- Thu, 05 Feb 2015 05:20:38 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: Thu, 05 Feb 2015 05:20:37 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: |-
|
179
|
+
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://notacarioca.rio.gov.br/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><CancelarNfseRequest><inputXML><?xml version="1.0" encoding="UTF-8"?>
|
180
|
+
<CancelarNfseEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd">
|
181
|
+
<Pedido xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd">
|
182
|
+
<InfPedidoCancelamento Id="Cancelamento_NF1000">
|
183
|
+
<IdentificacaoNfse>
|
184
|
+
<Numero>1000</Numero>
|
185
|
+
<Cnpj>12390095000186</Cnpj>
|
186
|
+
<InscricaoMunicipal>04807995</InscricaoMunicipal>
|
187
|
+
<CodigoMunicipio>3304557</CodigoMunicipio>
|
188
|
+
</IdentificacaoNfse>
|
189
|
+
<CodigoCancelamento>0</CodigoCancelamento>
|
190
|
+
</InfPedidoCancelamento>
|
191
|
+
</Pedido>
|
192
|
+
</CancelarNfseEnvio>
|
193
|
+
</inputXML></CancelarNfseRequest></soap:Body></soap:Envelope>
|
194
|
+
headers:
|
195
|
+
Soapaction:
|
196
|
+
- '"http://notacarioca.rio.gov.br/CancelarNfse"'
|
197
|
+
Content-Type:
|
198
|
+
- text/xml;charset=UTF-8
|
199
|
+
Content-Length:
|
200
|
+
- '1091'
|
201
|
+
Accept-Encoding:
|
202
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
203
|
+
Accept:
|
204
|
+
- "*/*"
|
205
|
+
User-Agent:
|
206
|
+
- Ruby
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
Cache-Control:
|
213
|
+
- private, max-age=0
|
214
|
+
Content-Type:
|
215
|
+
- text/xml; charset=utf-8
|
216
|
+
Vary:
|
217
|
+
- Accept-Encoding
|
218
|
+
Server:
|
219
|
+
- Microsoft-IIS/7.5
|
220
|
+
X-Aspnet-Version:
|
221
|
+
- 4.0.30319
|
222
|
+
X-Powered-By:
|
223
|
+
- ASP.NET
|
224
|
+
Date:
|
225
|
+
- Thu, 05 Feb 2015 05:20:43 GMT
|
226
|
+
Content-Length:
|
227
|
+
- '530'
|
228
|
+
body:
|
229
|
+
encoding: ASCII-8BIT
|
230
|
+
string: !binary |-
|
231
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c29hcDpF
|
232
|
+
bnZlbG9wZSB4bWxuczpzb2FwPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9y
|
233
|
+
Zy9zb2FwL2VudmVsb3BlLyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9y
|
234
|
+
Zy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM6eHNkPSJodHRwOi8v
|
235
|
+
d3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSI+PHNvYXA6Qm9keT48Q2FuY2Vs
|
236
|
+
YXJOZnNlUmVzcG9uc2UgeG1sbnM9Imh0dHA6Ly9ub3RhY2FyaW9jYS5yaW8u
|
237
|
+
Z292LmJyLyI+PG91dHB1dFhNTD4mbHQ7Q2FuY2VsYXJOZnNlUmVzcG9zdGEg
|
238
|
+
eG1sbnM6eHNkPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIg
|
239
|
+
eG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1p
|
240
|
+
bnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly93d3cuYWJyYXNmLm9yZy5ici9BQlJB
|
241
|
+
U0YvYXJxdWl2b3MvbmZzZS54c2QiJmd0OyZsdDtMaXN0YU1lbnNhZ2VtUmV0
|
242
|
+
b3JubyZndDsmbHQ7TWVuc2FnZW1SZXRvcm5vJmd0OyZsdDtDb2RpZ28mZ3Q7
|
243
|
+
RTc4Jmx0Oy9Db2RpZ28mZ3Q7Jmx0O01lbnNhZ2VtJmd0O07Dum1lcm8gZGEg
|
244
|
+
TkZTZSBpbmV4aXN0ZW50ZSBuYSBiYXNlIGRlIGRhZG9zIHBhcmEgbyBwcmVz
|
245
|
+
dGFkb3IgZGUgc2VydmnDp28gcGVzcXVpc2FkbyZsdDsvTWVuc2FnZW0mZ3Q7
|
246
|
+
Jmx0O0NvcnJlY2FvJmd0O0luZm9ybWUgbyBuw7ptZXJvIGNvcnJldG8gZGEg
|
247
|
+
TkZTZS4mbHQ7L0NvcnJlY2FvJmd0OyZsdDsvTWVuc2FnZW1SZXRvcm5vJmd0
|
248
|
+
OyZsdDsvTGlzdGFNZW5zYWdlbVJldG9ybm8mZ3Q7Jmx0Oy9DYW5jZWxhck5m
|
249
|
+
c2VSZXNwb3N0YSZndDs8L291dHB1dFhNTD48L0NhbmNlbGFyTmZzZVJlc3Bv
|
250
|
+
bnNlPjwvc29hcDpCb2R5Pjwvc29hcDpFbnZlbG9wZT4=
|
251
|
+
http_version:
|
252
|
+
recorded_at: Thu, 05 Feb 2015 05:20:41 GMT
|
253
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,253 @@
|
|
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
|
+
- Thu, 05 Feb 2015 05:20:37 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: Thu, 05 Feb 2015 05:20:35 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: |-
|
179
|
+
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://notacarioca.rio.gov.br/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><CancelarNfseRequest><inputXML><?xml version="1.0" encoding="UTF-8"?>
|
180
|
+
<CancelarNfseEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd">
|
181
|
+
<Pedido xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd">
|
182
|
+
<InfPedidoCancelamento Id="Cancelamento_NF1000">
|
183
|
+
<IdentificacaoNfse>
|
184
|
+
<Numero>1000</Numero>
|
185
|
+
<Cnpj>12390095000186</Cnpj>
|
186
|
+
<InscricaoMunicipal>04807995</InscricaoMunicipal>
|
187
|
+
<CodigoMunicipio>3304557</CodigoMunicipio>
|
188
|
+
</IdentificacaoNfse>
|
189
|
+
<CodigoCancelamento>0</CodigoCancelamento>
|
190
|
+
</InfPedidoCancelamento>
|
191
|
+
</Pedido>
|
192
|
+
</CancelarNfseEnvio>
|
193
|
+
</inputXML></CancelarNfseRequest></soap:Body></soap:Envelope>
|
194
|
+
headers:
|
195
|
+
Soapaction:
|
196
|
+
- '"http://notacarioca.rio.gov.br/CancelarNfse"'
|
197
|
+
Content-Type:
|
198
|
+
- text/xml;charset=UTF-8
|
199
|
+
Content-Length:
|
200
|
+
- '1091'
|
201
|
+
Accept-Encoding:
|
202
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
203
|
+
Accept:
|
204
|
+
- "*/*"
|
205
|
+
User-Agent:
|
206
|
+
- Ruby
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
Cache-Control:
|
213
|
+
- private, max-age=0
|
214
|
+
Content-Type:
|
215
|
+
- text/xml; charset=utf-8
|
216
|
+
Vary:
|
217
|
+
- Accept-Encoding
|
218
|
+
Server:
|
219
|
+
- Microsoft-IIS/7.5
|
220
|
+
X-Aspnet-Version:
|
221
|
+
- 4.0.30319
|
222
|
+
X-Powered-By:
|
223
|
+
- ASP.NET
|
224
|
+
Date:
|
225
|
+
- Thu, 05 Feb 2015 05:20:38 GMT
|
226
|
+
Content-Length:
|
227
|
+
- '530'
|
228
|
+
body:
|
229
|
+
encoding: ASCII-8BIT
|
230
|
+
string: !binary |-
|
231
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c29hcDpF
|
232
|
+
bnZlbG9wZSB4bWxuczpzb2FwPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9y
|
233
|
+
Zy9zb2FwL2VudmVsb3BlLyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9y
|
234
|
+
Zy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM6eHNkPSJodHRwOi8v
|
235
|
+
d3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSI+PHNvYXA6Qm9keT48Q2FuY2Vs
|
236
|
+
YXJOZnNlUmVzcG9uc2UgeG1sbnM9Imh0dHA6Ly9ub3RhY2FyaW9jYS5yaW8u
|
237
|
+
Z292LmJyLyI+PG91dHB1dFhNTD4mbHQ7Q2FuY2VsYXJOZnNlUmVzcG9zdGEg
|
238
|
+
eG1sbnM6eHNkPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIg
|
239
|
+
eG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1p
|
240
|
+
bnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly93d3cuYWJyYXNmLm9yZy5ici9BQlJB
|
241
|
+
U0YvYXJxdWl2b3MvbmZzZS54c2QiJmd0OyZsdDtMaXN0YU1lbnNhZ2VtUmV0
|
242
|
+
b3JubyZndDsmbHQ7TWVuc2FnZW1SZXRvcm5vJmd0OyZsdDtDb2RpZ28mZ3Q7
|
243
|
+
RTc4Jmx0Oy9Db2RpZ28mZ3Q7Jmx0O01lbnNhZ2VtJmd0O07Dum1lcm8gZGEg
|
244
|
+
TkZTZSBpbmV4aXN0ZW50ZSBuYSBiYXNlIGRlIGRhZG9zIHBhcmEgbyBwcmVz
|
245
|
+
dGFkb3IgZGUgc2VydmnDp28gcGVzcXVpc2FkbyZsdDsvTWVuc2FnZW0mZ3Q7
|
246
|
+
Jmx0O0NvcnJlY2FvJmd0O0luZm9ybWUgbyBuw7ptZXJvIGNvcnJldG8gZGEg
|
247
|
+
TkZTZS4mbHQ7L0NvcnJlY2FvJmd0OyZsdDsvTWVuc2FnZW1SZXRvcm5vJmd0
|
248
|
+
OyZsdDsvTGlzdGFNZW5zYWdlbVJldG9ybm8mZ3Q7Jmx0Oy9DYW5jZWxhck5m
|
249
|
+
c2VSZXNwb3N0YSZndDs8L291dHB1dFhNTD48L0NhbmNlbGFyTmZzZVJlc3Bv
|
250
|
+
bnNlPjwvc29hcDpCb2R5Pjwvc29hcDpFbnZlbG9wZT4=
|
251
|
+
http_version:
|
252
|
+
recorded_at: Thu, 05 Feb 2015 05:20:37 GMT
|
253
|
+
recorded_with: VCR 2.9.3
|