tinyerp_ruby 0.4.4 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +1 -1
- data/lib/tinyerp_ruby/poster.rb +6 -2
- data/lib/tinyerp_ruby/version.rb +1 -1
- data/spec/support/vcr/TinyerpRuby_Poster/_call/output_a_hash.yml +12 -11
- data/spec/support/vcr/TinyerpRuby_Poster/_call/output_keys_as_symbols.yml +12 -11
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_contato_service_as_a_valid_service.yml +15 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_contato_xml_as_a_valid_service.yml +39 -67
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_grupo_tag_service_as_a_valid_service.yml +34 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_grupo_tag_xml_as_a_valid_service.yml +39 -67
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_produto_service_as_a_valid_service.yml +13 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_produto_xml_as_a_valid_service.yml +65 -37
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_tag_service_as_a_valid_service.yml +34 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_alterar_tag_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_gerar_ordem_produca_pedido_service_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_contato_service_as_a_valid_service.yml +13 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_contato_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_contrato_service_as_a_valid_service.yml +15 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_contrato_xml_as_a_valid_service.yml +10 -10
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_grupo_tag_service_as_a_valid_service.yml +13 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_grupo_tag_xml_as_a_valid_service.yml +65 -37
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_nota_fiscal_service_as_a_valid_service.yml +16 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_nota_fiscal_xml_as_a_valid_service.yml +10 -10
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_nota_servico_service_as_a_valid_service.yml +17 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_nota_servico_xml_as_a_valid_service.yml +37 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_pedido_service_as_a_valid_service.yml +15 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_pedido_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_produto_service_as_a_valid_service.yml +15 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_produto_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_tag_service_as_a_valid_service.yml +34 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_tag_xml_as_a_valid_service.yml +37 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_lista_atualizacoes_estoque_service_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_lista_atualizacoes_estoque_xml_as_a_valid_service.yml +19 -19
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_lista_atualizacoes_produtos_service_as_a_valid_service.yml +36 -66
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_lista_atualizacoes_produtos_xml_as_a_valid_service.yml +19 -18
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_contato_service_as_a_valid_service.yml +36 -64
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_contato_xml_as_a_valid_service.yml +35 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_contrato_service_as_a_valid_service.yml +35 -64
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_contrato_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_estoque_produto_service_as_a_valid_service.yml +35 -66
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_estoque_produto_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_estrutura_produto_service_as_a_valid_service.yml +35 -66
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_estrutura_produto_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_nota_fiscal_service_as_a_valid_service.yml +35 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_nota_fiscal_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_nota_servico_service_as_a_valid_service.yml +36 -64
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_nota_servico_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_pedido_service_as_a_valid_service.yml +36 -64
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_pedido_xml_as_a_valid_service.yml +18 -17
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_produto_service_as_a_valid_service.yml +36 -64
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_produto_xml_as_a_valid_service.yml +17 -18
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_tags_produto_service_as_a_valid_service.yml +35 -66
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_tags_produto_xml_as_a_valid_service.yml +18 -17
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_obter_xml_nota_fiscal_as_a_valid_service.yml +15 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_contatos_service_as_a_valid_service.yml +37 -66
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_contatos_xml_as_a_valid_service.yml +36 -65
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_contratos_service_as_a_valid_service.yml +17 -19
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_contratos_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_grupos_tag_service_as_a_valid_service.yml +35 -64
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_grupos_tag_xml_as_a_valid_service.yml +17 -18
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_notas_fiscais_service_as_a_valid_service.yml +18 -19
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_notas_fiscais_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_notas_servico_service_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_notas_servico_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_pedidos_service_as_a_valid_service.yml +19 -17
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_pedidos_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_produtos_service_as_a_valid_service.yml +35 -66
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_produtos_xml_as_a_valid_service.yml +8 -8
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_tag_service_as_a_valid_service.yml +17 -18
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_tag_xml_as_a_valid_service.yml +20 -19
- data/spec/support/vcr/TinyerpRuby_Service/accepts/_pesquisar_vendedores_service_as_a_valid_service.yml +35 -66
- data/spec/tinyerp_ruby/service_spec.rb +5 -4
- metadata +14 -16
- data/spec/support/vcr/TinyerpRuby_Service/accepts/poster_post.yml +0 -1582
data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_contrato_xml_as_a_valid_service.yml
CHANGED
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/xml; charset=ISO-8859-1
|
23
23
|
Date:
|
24
|
-
- Tue, 08 Apr 2014
|
24
|
+
- Tue, 08 Apr 2014 13:45:51 GMT
|
25
25
|
Expires:
|
26
26
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
27
27
|
Pragma:
|
@@ -29,11 +29,11 @@ http_interactions:
|
|
29
29
|
Server:
|
30
30
|
- Apache/2.2.25 (Amazon)
|
31
31
|
Set-Cookie:
|
32
|
-
- PHPSESSID=
|
32
|
+
- PHPSESSID=gc9n4638r34veuluvdau4voh9iihhnqn; path=/
|
33
33
|
X-Powered-By:
|
34
34
|
- PHP/5.3.27
|
35
|
-
|
36
|
-
-
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
@@ -1494,7 +1494,7 @@ http_interactions:
|
|
1494
1494
|
aW9uPSJodHRwOi8vd3d3LnRpbnkuY29tLmJyL2FwaTIucGhwIi8+CiAgPC9w
|
1495
1495
|
b3J0Pgo8L3NlcnZpY2U+CjwvZGVmaW5pdGlvbnM+
|
1496
1496
|
http_version:
|
1497
|
-
recorded_at: Tue, 08 Apr 2014
|
1497
|
+
recorded_at: Tue, 08 Apr 2014 13:45:51 GMT
|
1498
1498
|
- request:
|
1499
1499
|
method: post
|
1500
1500
|
uri: http://www.tiny.com.br/api2.php
|
@@ -1502,14 +1502,14 @@ http_interactions:
|
|
1502
1502
|
encoding: US-ASCII
|
1503
1503
|
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1504
1504
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:tinywsdl"
|
1505
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirContratoXML><token><APIKEY></token><formato>json</formato></tns:incluirContratoXML></env:Body></env:Envelope>
|
1505
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirContratoXML><token><APIKEY></token><foo>"bar"</foo><formato>json</formato></tns:incluirContratoXML></env:Body></env:Envelope>
|
1506
1506
|
headers:
|
1507
1507
|
Soapaction:
|
1508
1508
|
- ! '"urn:tinywsdl#incluirContratoXML"'
|
1509
1509
|
Content-Type:
|
1510
1510
|
- text/xml;charset=UTF-8
|
1511
1511
|
Content-Length:
|
1512
|
-
- '
|
1512
|
+
- '419'
|
1513
1513
|
Accept:
|
1514
1514
|
- ! '*/*'
|
1515
1515
|
User-Agent:
|
@@ -1524,7 +1524,7 @@ http_interactions:
|
|
1524
1524
|
Content-Type:
|
1525
1525
|
- text/xml; charset=UTF-8
|
1526
1526
|
Date:
|
1527
|
-
- Tue, 08 Apr 2014
|
1527
|
+
- Tue, 08 Apr 2014 13:45:51 GMT
|
1528
1528
|
Expires:
|
1529
1529
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
1530
1530
|
Pragma:
|
@@ -1532,7 +1532,7 @@ http_interactions:
|
|
1532
1532
|
Server:
|
1533
1533
|
- Apache/2.2.25 (Amazon)
|
1534
1534
|
Set-Cookie:
|
1535
|
-
- PHPSESSID=
|
1535
|
+
- PHPSESSID=n2tagjlf5lvqbrb8sjk2h7ruqj4ofegn; path=/
|
1536
1536
|
X-Powered-By:
|
1537
1537
|
- PHP/5.3.27
|
1538
1538
|
X-Soap-Server:
|
@@ -1551,5 +1551,5 @@ http_interactions:
|
|
1551
1551
|
XML mal formado, mensagem:\tStart tag expected, '&lt;' not found\n\tStart
|
1552
1552
|
tag expected, '&lt;' not found\n</erro></erros></retorno></return></ns1:incluirContratoXMLResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
1553
1553
|
http_version:
|
1554
|
-
recorded_at: Tue, 08 Apr 2014
|
1554
|
+
recorded_at: Tue, 08 Apr 2014 13:45:51 GMT
|
1555
1555
|
recorded_with: VCR 2.9.0
|
data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_grupo_tag_service_as_a_valid_service.yml
CHANGED
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/xml; charset=ISO-8859-1
|
23
23
|
Date:
|
24
|
-
- Tue, 08 Apr 2014
|
24
|
+
- Tue, 08 Apr 2014 13:45:51 GMT
|
25
25
|
Expires:
|
26
26
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
27
27
|
Pragma:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Server:
|
30
30
|
- Apache/2.2.25 (Amazon)
|
31
31
|
Set-Cookie:
|
32
|
-
- PHPSESSID=
|
32
|
+
- PHPSESSID=97l71upm6c5psu7tmaluavbrao6kqtda; path=/
|
33
33
|
X-Powered-By:
|
34
34
|
- PHP/5.3.27
|
35
35
|
Transfer-Encoding:
|
@@ -1494,7 +1494,7 @@ http_interactions:
|
|
1494
1494
|
aW9uPSJodHRwOi8vd3d3LnRpbnkuY29tLmJyL2FwaTIucGhwIi8+CiAgPC9w
|
1495
1495
|
b3J0Pgo8L3NlcnZpY2U+CjwvZGVmaW5pdGlvbnM+
|
1496
1496
|
http_version:
|
1497
|
-
recorded_at: Tue, 08 Apr 2014
|
1497
|
+
recorded_at: Tue, 08 Apr 2014 13:45:52 GMT
|
1498
1498
|
- request:
|
1499
1499
|
method: post
|
1500
1500
|
uri: http://www.tiny.com.br/api2.php
|
@@ -1502,14 +1502,14 @@ http_interactions:
|
|
1502
1502
|
encoding: US-ASCII
|
1503
1503
|
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1504
1504
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:tinywsdl"
|
1505
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirGrupoTagService><token><APIKEY></token><formato>json</formato></tns:incluirGrupoTagService></env:Body></env:Envelope>
|
1505
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirGrupoTagService><token><APIKEY></token><foo>"bar"</foo><formato>json</formato></tns:incluirGrupoTagService></env:Body></env:Envelope>
|
1506
1506
|
headers:
|
1507
1507
|
Soapaction:
|
1508
1508
|
- ! '"urn:tinywsdl#incluirGrupoTagService"'
|
1509
1509
|
Content-Type:
|
1510
1510
|
- text/xml;charset=UTF-8
|
1511
1511
|
Content-Length:
|
1512
|
-
- '
|
1512
|
+
- '427'
|
1513
1513
|
Accept:
|
1514
1514
|
- ! '*/*'
|
1515
1515
|
User-Agent:
|
@@ -1524,7 +1524,7 @@ http_interactions:
|
|
1524
1524
|
Content-Type:
|
1525
1525
|
- text/xml; charset=UTF-8
|
1526
1526
|
Date:
|
1527
|
-
- Tue, 08 Apr 2014
|
1527
|
+
- Tue, 08 Apr 2014 13:45:51 GMT
|
1528
1528
|
Expires:
|
1529
1529
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
1530
1530
|
Pragma:
|
@@ -1532,24 +1532,21 @@ http_interactions:
|
|
1532
1532
|
Server:
|
1533
1533
|
- Apache/2.2.25 (Amazon)
|
1534
1534
|
Set-Cookie:
|
1535
|
-
- PHPSESSID=
|
1535
|
+
- PHPSESSID=hbgflrjcrufd1bp6a44b54o0hs4jcstm; path=/
|
1536
1536
|
X-Powered-By:
|
1537
1537
|
- PHP/5.3.27
|
1538
1538
|
X-Soap-Server:
|
1539
1539
|
- NuSOAP/0.9.5 (1.1)
|
1540
1540
|
Content-Length:
|
1541
|
-
- '
|
1541
|
+
- '658'
|
1542
1542
|
Connection:
|
1543
1543
|
- keep-alive
|
1544
1544
|
body:
|
1545
1545
|
encoding: US-ASCII
|
1546
|
-
string:
|
1547
|
-
xmlns:SOAP-ENV
|
1548
|
-
xmlns:xsi
|
1549
|
-
xmlns:ns1
|
1550
|
-
encoding="UTF-8"?><retorno><status_processamento>1</status_processamento><status>Erro</status><codigo_erro>3</codigo_erro><erros><erro>ERRO
|
1551
|
-
XML mal formado, mensagem:\tStart tag expected, '&lt;' not found\n\tStart
|
1552
|
-
tag expected, '&lt;' not found\n</erro></erros></retorno></return></ns1:incluirGrupoTagServiceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
1546
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
|
1547
|
+
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1548
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:incluirGrupoTagServiceResponse
|
1549
|
+
xmlns:ns1="urn:tinywsdl"><return xsi:type="xsd:string">{"retorno":{"status_processamento":"3","status":"OK","registros":[]}}</return></ns1:incluirGrupoTagServiceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
1553
1550
|
http_version:
|
1554
|
-
recorded_at: Tue, 08 Apr 2014
|
1551
|
+
recorded_at: Tue, 08 Apr 2014 13:45:52 GMT
|
1555
1552
|
recorded_with: VCR 2.9.0
|
data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_grupo_tag_xml_as_a_valid_service.yml
CHANGED
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/xml; charset=ISO-8859-1
|
23
23
|
Date:
|
24
|
-
- Tue, 08 Apr 2014
|
24
|
+
- Tue, 08 Apr 2014 13:46:12 GMT
|
25
25
|
Expires:
|
26
26
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
27
27
|
Pragma:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Server:
|
30
30
|
- Apache/2.2.25 (Amazon)
|
31
31
|
Set-Cookie:
|
32
|
-
- PHPSESSID=
|
32
|
+
- PHPSESSID=l4c84vemtuhp64muqmmvvjb6bifhqje5; path=/
|
33
33
|
X-Powered-By:
|
34
34
|
- PHP/5.3.27
|
35
35
|
Transfer-Encoding:
|
@@ -1494,7 +1494,7 @@ http_interactions:
|
|
1494
1494
|
aW9uPSJodHRwOi8vd3d3LnRpbnkuY29tLmJyL2FwaTIucGhwIi8+CiAgPC9w
|
1495
1495
|
b3J0Pgo8L3NlcnZpY2U+CjwvZGVmaW5pdGlvbnM+
|
1496
1496
|
http_version:
|
1497
|
-
recorded_at: Tue, 08 Apr 2014
|
1497
|
+
recorded_at: Tue, 08 Apr 2014 13:46:12 GMT
|
1498
1498
|
- request:
|
1499
1499
|
method: post
|
1500
1500
|
uri: http://www.tiny.com.br/api2.php
|
@@ -1502,14 +1502,14 @@ http_interactions:
|
|
1502
1502
|
encoding: US-ASCII
|
1503
1503
|
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1504
1504
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:tinywsdl"
|
1505
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirGrupoTagXML><token><APIKEY></token><formato>json</formato></tns:incluirGrupoTagXML></env:Body></env:Envelope>
|
1505
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirGrupoTagXML><token><APIKEY></token><foo>"bar"</foo><formato>json</formato></tns:incluirGrupoTagXML></env:Body></env:Envelope>
|
1506
1506
|
headers:
|
1507
1507
|
Soapaction:
|
1508
1508
|
- ! '"urn:tinywsdl#incluirGrupoTagXML"'
|
1509
1509
|
Content-Type:
|
1510
1510
|
- text/xml;charset=UTF-8
|
1511
1511
|
Content-Length:
|
1512
|
-
- '
|
1512
|
+
- '419'
|
1513
1513
|
Accept:
|
1514
1514
|
- ! '*/*'
|
1515
1515
|
User-Agent:
|
@@ -1517,39 +1517,67 @@ http_interactions:
|
|
1517
1517
|
response:
|
1518
1518
|
status:
|
1519
1519
|
code: 200
|
1520
|
-
message:
|
1520
|
+
message: !binary |-
|
1521
|
+
T0s=
|
1521
1522
|
headers:
|
1522
|
-
|
1523
|
-
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1523
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
1524
|
+
- !binary |-
|
1525
|
+
bm8tc3RvcmUsIG5vLWNhY2hlLCBtdXN0LXJldmFsaWRhdGUsIHBvc3QtY2hl
|
1526
|
+
Y2s9MCwgcHJlLWNoZWNrPTA=
|
1527
|
+
!binary "Q29udGVudC1UeXBl":
|
1528
|
+
- !binary |-
|
1529
|
+
dGV4dC94bWw7IGNoYXJzZXQ9VVRGLTg=
|
1530
|
+
!binary "RGF0ZQ==":
|
1531
|
+
- !binary |-
|
1532
|
+
VHVlLCAwOCBBcHIgMjAxNCAxMzo0NjoxMiBHTVQ=
|
1533
|
+
!binary "RXhwaXJlcw==":
|
1534
|
+
- !binary |-
|
1535
|
+
VGh1LCAxOSBOb3YgMTk4MSAwODo1MjowMCBHTVQ=
|
1536
|
+
!binary "UHJhZ21h":
|
1537
|
+
- !binary |-
|
1538
|
+
bm8tY2FjaGU=
|
1539
|
+
!binary "U2VydmVy":
|
1540
|
+
- !binary |-
|
1541
|
+
QXBhY2hlLzIuMi4yNSAoQW1hem9uKQ==
|
1542
|
+
!binary "U2V0LUNvb2tpZQ==":
|
1543
|
+
- !binary |-
|
1544
|
+
UEhQU0VTU0lEPWVpa21vZjc5aW91Y2ZxbnBjczc4dXQyZjRzaDlxMzFpOyBw
|
1545
|
+
YXRoPS8=
|
1546
|
+
!binary "WC1Qb3dlcmVkLUJ5":
|
1547
|
+
- !binary |-
|
1548
|
+
UEhQLzUuMy4yNw==
|
1549
|
+
!binary "WC1Tb2FwLVNlcnZlcg==":
|
1550
|
+
- !binary |-
|
1551
|
+
TnVTT0FQLzAuOS41ICgxLjEp
|
1552
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
1553
|
+
- !binary |-
|
1554
|
+
ODky
|
1555
|
+
!binary "Q29ubmVjdGlvbg==":
|
1556
|
+
- !binary |-
|
1557
|
+
a2VlcC1hbGl2ZQ==
|
1544
1558
|
body:
|
1545
|
-
encoding:
|
1546
|
-
string: !
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1559
|
+
encoding: ASCII-8BIT
|
1560
|
+
string: !binary |-
|
1561
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48U09BUC1F
|
1562
|
+
TlY6RW52ZWxvcGUgU09BUC1FTlY6ZW5jb2RpbmdTdHlsZT0iaHR0cDovL3Nj
|
1563
|
+
aGVtYXMueG1sc29hcC5vcmcvc29hcC9lbmNvZGluZy8iIHhtbG5zOlNPQVAt
|
1564
|
+
RU5WPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VudmVsb3Bl
|
1565
|
+
LyIgeG1sbnM6eHNkPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVt
|
1566
|
+
YSIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVt
|
1567
|
+
YS1pbnN0YW5jZSIgeG1sbnM6U09BUC1FTkM9Imh0dHA6Ly9zY2hlbWFzLnht
|
1568
|
+
bHNvYXAub3JnL3NvYXAvZW5jb2RpbmcvIj48U09BUC1FTlY6Qm9keT48bnMx
|
1569
|
+
OmluY2x1aXJHcnVwb1RhZ1hNTFJlc3BvbnNlIHhtbG5zOm5zMT0idXJuOnRp
|
1570
|
+
bnl3c2RsIj48cmV0dXJuIHhzaTp0eXBlPSJ4c2Q6c3RyaW5nIj4mbHQ7P3ht
|
1571
|
+
bCB2ZXJzaW9uPSZxdW90OzEuMCZxdW90OyBlbmNvZGluZz0mcXVvdDtVVEYt
|
1572
|
+
OCZxdW90Oz8mZ3Q7Jmx0O3JldG9ybm8mZ3Q7Jmx0O3N0YXR1c19wcm9jZXNz
|
1573
|
+
YW1lbnRvJmd0OzEmbHQ7L3N0YXR1c19wcm9jZXNzYW1lbnRvJmd0OyZsdDtz
|
1574
|
+
dGF0dXMmZ3Q7RXJybyZsdDsvc3RhdHVzJmd0OyZsdDtjb2RpZ29fZXJybyZn
|
1575
|
+
dDs2Jmx0Oy9jb2RpZ29fZXJybyZndDsmbHQ7ZXJyb3MmZ3Q7Jmx0O2Vycm8m
|
1576
|
+
Z3Q7QVBJIEJsb3F1ZWFkYSAtIEV4Y2VkaWRvIG8gbsO6bWVybyBkZSBhY2Vz
|
1577
|
+
c29zIGEgQVBJLCBhZ3VhcmRlIGFsZ3VucyBtaW51dG9zIGUgdGVudGUgbm92
|
1578
|
+
YW1lbnRlJmx0Oy9lcnJvJmd0OyZsdDsvZXJyb3MmZ3Q7Jmx0Oy9yZXRvcm5v
|
1579
|
+
Jmd0OzwvcmV0dXJuPjwvbnMxOmluY2x1aXJHcnVwb1RhZ1hNTFJlc3BvbnNl
|
1580
|
+
PjwvU09BUC1FTlY6Qm9keT48L1NPQVAtRU5WOkVudmVsb3BlPg==
|
1553
1581
|
http_version:
|
1554
|
-
recorded_at: Tue, 08 Apr 2014
|
1582
|
+
recorded_at: Tue, 08 Apr 2014 13:46:13 GMT
|
1555
1583
|
recorded_with: VCR 2.9.0
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/xml; charset=ISO-8859-1
|
23
23
|
Date:
|
24
|
-
- Tue, 08 Apr 2014
|
24
|
+
- Tue, 08 Apr 2014 13:46:01 GMT
|
25
25
|
Expires:
|
26
26
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
27
27
|
Pragma:
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Server:
|
30
30
|
- Apache/2.2.25 (Amazon)
|
31
31
|
Set-Cookie:
|
32
|
-
- PHPSESSID=
|
32
|
+
- PHPSESSID=f11c4nc1gpo0kvnbisvinja1pb56kne0; path=/
|
33
33
|
X-Powered-By:
|
34
34
|
- PHP/5.3.27
|
35
35
|
Transfer-Encoding:
|
@@ -1494,7 +1494,7 @@ http_interactions:
|
|
1494
1494
|
aW9uPSJodHRwOi8vd3d3LnRpbnkuY29tLmJyL2FwaTIucGhwIi8+CiAgPC9w
|
1495
1495
|
b3J0Pgo8L3NlcnZpY2U+CjwvZGVmaW5pdGlvbnM+
|
1496
1496
|
http_version:
|
1497
|
-
recorded_at: Tue, 08 Apr 2014
|
1497
|
+
recorded_at: Tue, 08 Apr 2014 13:46:01 GMT
|
1498
1498
|
- request:
|
1499
1499
|
method: post
|
1500
1500
|
uri: http://www.tiny.com.br/api2.php
|
@@ -1502,14 +1502,14 @@ http_interactions:
|
|
1502
1502
|
encoding: US-ASCII
|
1503
1503
|
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1504
1504
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:tinywsdl"
|
1505
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirNotaFiscalService><token><APIKEY></token><formato>json</formato></tns:incluirNotaFiscalService></env:Body></env:Envelope>
|
1505
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirNotaFiscalService><token><APIKEY></token><foo>"bar"</foo><formato>json</formato></tns:incluirNotaFiscalService></env:Body></env:Envelope>
|
1506
1506
|
headers:
|
1507
1507
|
Soapaction:
|
1508
1508
|
- ! '"urn:tinywsdl#incluirNotaFiscalService"'
|
1509
1509
|
Content-Type:
|
1510
1510
|
- text/xml;charset=UTF-8
|
1511
1511
|
Content-Length:
|
1512
|
-
- '
|
1512
|
+
- '431'
|
1513
1513
|
Accept:
|
1514
1514
|
- ! '*/*'
|
1515
1515
|
User-Agent:
|
@@ -1524,7 +1524,7 @@ http_interactions:
|
|
1524
1524
|
Content-Type:
|
1525
1525
|
- text/xml; charset=UTF-8
|
1526
1526
|
Date:
|
1527
|
-
- Tue, 08 Apr 2014
|
1527
|
+
- Tue, 08 Apr 2014 13:46:01 GMT
|
1528
1528
|
Expires:
|
1529
1529
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
1530
1530
|
Pragma:
|
@@ -1532,24 +1532,24 @@ http_interactions:
|
|
1532
1532
|
Server:
|
1533
1533
|
- Apache/2.2.25 (Amazon)
|
1534
1534
|
Set-Cookie:
|
1535
|
-
- PHPSESSID=
|
1535
|
+
- PHPSESSID=ehopin9f0o5v12kdlcdqv0clipqhtcis; path=/
|
1536
1536
|
X-Powered-By:
|
1537
1537
|
- PHP/5.3.27
|
1538
1538
|
X-Soap-Server:
|
1539
1539
|
- NuSOAP/0.9.5 (1.1)
|
1540
1540
|
Content-Length:
|
1541
|
-
- '
|
1541
|
+
- '1056'
|
1542
1542
|
Connection:
|
1543
1543
|
- keep-alive
|
1544
1544
|
body:
|
1545
1545
|
encoding: US-ASCII
|
1546
|
-
string:
|
1547
|
-
xmlns:SOAP-ENV
|
1548
|
-
xmlns:xsi
|
1549
|
-
xmlns:ns1
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1546
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
|
1547
|
+
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1548
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:incluirNotaFiscalServiceResponse
|
1549
|
+
xmlns:ns1="urn:tinywsdl"><return xsi:type="xsd:string">{"retorno":{"status_processamento":"2","status":"OK","registros":{"registro":{"sequencia":"1","status":"Erro","codigo_erro":"31","erros":[{"erro":"O
|
1550
|
+
nome do cliente deve ser informado"},{"erro":"\u00c9 necess\u00e1rio
|
1551
|
+
informar ao menos um item para a nota fiscal"},{"erro":"O
|
1552
|
+
campo frete_por_conta deve ser informado"}]}}}}</return></ns1:incluirNotaFiscalServiceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
1553
1553
|
http_version:
|
1554
|
-
recorded_at: Tue, 08 Apr 2014
|
1554
|
+
recorded_at: Tue, 08 Apr 2014 13:46:02 GMT
|
1555
1555
|
recorded_with: VCR 2.9.0
|
data/spec/support/vcr/TinyerpRuby_Service/accepts/_incluir_nota_fiscal_xml_as_a_valid_service.yml
CHANGED
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/xml; charset=ISO-8859-1
|
23
23
|
Date:
|
24
|
-
- Tue, 08 Apr 2014
|
24
|
+
- Tue, 08 Apr 2014 13:45:54 GMT
|
25
25
|
Expires:
|
26
26
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
27
27
|
Pragma:
|
@@ -29,11 +29,11 @@ http_interactions:
|
|
29
29
|
Server:
|
30
30
|
- Apache/2.2.25 (Amazon)
|
31
31
|
Set-Cookie:
|
32
|
-
- PHPSESSID=
|
32
|
+
- PHPSESSID=55omn7kl1mmqdb8dfld5s8kn3ijccphv; path=/
|
33
33
|
X-Powered-By:
|
34
34
|
- PHP/5.3.27
|
35
|
-
|
36
|
-
-
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
37
|
Connection:
|
38
38
|
- keep-alive
|
39
39
|
body:
|
@@ -1494,7 +1494,7 @@ http_interactions:
|
|
1494
1494
|
aW9uPSJodHRwOi8vd3d3LnRpbnkuY29tLmJyL2FwaTIucGhwIi8+CiAgPC9w
|
1495
1495
|
b3J0Pgo8L3NlcnZpY2U+CjwvZGVmaW5pdGlvbnM+
|
1496
1496
|
http_version:
|
1497
|
-
recorded_at: Tue, 08 Apr 2014
|
1497
|
+
recorded_at: Tue, 08 Apr 2014 13:45:55 GMT
|
1498
1498
|
- request:
|
1499
1499
|
method: post
|
1500
1500
|
uri: http://www.tiny.com.br/api2.php
|
@@ -1502,14 +1502,14 @@ http_interactions:
|
|
1502
1502
|
encoding: US-ASCII
|
1503
1503
|
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
1504
1504
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:tinywsdl"
|
1505
|
-
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirNotaFiscalXML><token><APIKEY></token><formato>json</formato></tns:incluirNotaFiscalXML></env:Body></env:Envelope>
|
1505
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:incluirNotaFiscalXML><token><APIKEY></token><foo>"bar"</foo><formato>json</formato></tns:incluirNotaFiscalXML></env:Body></env:Envelope>
|
1506
1506
|
headers:
|
1507
1507
|
Soapaction:
|
1508
1508
|
- ! '"urn:tinywsdl#incluirNotaFiscalXML"'
|
1509
1509
|
Content-Type:
|
1510
1510
|
- text/xml;charset=UTF-8
|
1511
1511
|
Content-Length:
|
1512
|
-
- '
|
1512
|
+
- '423'
|
1513
1513
|
Accept:
|
1514
1514
|
- ! '*/*'
|
1515
1515
|
User-Agent:
|
@@ -1524,7 +1524,7 @@ http_interactions:
|
|
1524
1524
|
Content-Type:
|
1525
1525
|
- text/xml; charset=UTF-8
|
1526
1526
|
Date:
|
1527
|
-
- Tue, 08 Apr 2014
|
1527
|
+
- Tue, 08 Apr 2014 13:45:55 GMT
|
1528
1528
|
Expires:
|
1529
1529
|
- Thu, 19 Nov 1981 08:52:00 GMT
|
1530
1530
|
Pragma:
|
@@ -1532,7 +1532,7 @@ http_interactions:
|
|
1532
1532
|
Server:
|
1533
1533
|
- Apache/2.2.25 (Amazon)
|
1534
1534
|
Set-Cookie:
|
1535
|
-
- PHPSESSID=
|
1535
|
+
- PHPSESSID=2ikoq5aj08evie177v90f6r1jvkgkgco; path=/
|
1536
1536
|
X-Powered-By:
|
1537
1537
|
- PHP/5.3.27
|
1538
1538
|
X-Soap-Server:
|
@@ -1551,5 +1551,5 @@ http_interactions:
|
|
1551
1551
|
XML mal formado, mensagem:\tStart tag expected, '&lt;' not found\n\tStart
|
1552
1552
|
tag expected, '&lt;' not found\n</erro></erros></retorno></return></ns1:incluirNotaFiscalXMLResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
1553
1553
|
http_version:
|
1554
|
-
recorded_at: Tue, 08 Apr 2014
|
1554
|
+
recorded_at: Tue, 08 Apr 2014 13:45:55 GMT
|
1555
1555
|
recorded_with: VCR 2.9.0
|