nne_client 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f962eb35e8fb89c38a8f8c3d0c5009ffac486e78
4
- data.tar.gz: 8395f6436bf0d427cc1e9760305708f154c64535
3
+ metadata.gz: 14d9dda9044a127b02e21d2094705ea0875b27f3
4
+ data.tar.gz: 9070ae645bb6f0eb2dd398025df997437e1a3275
5
5
  SHA512:
6
- metadata.gz: f35a1cdf106893354b119c57438f8ea6d0c7b13498650cbc8b57dff77e5b66ece4de737c13e58875aee2614691f5cd712a52174e181708e6123dec2fbf7fe513
7
- data.tar.gz: 7c037e48c4f7a46df25d0b13afb6d15e94f49d7e4ccef55d45bef9b5d9816d8a00c892b01c86dcc14a3315927984bfc830cc15d899e849eb588bbbe0aec85dd4
6
+ metadata.gz: 1dd5f6019f63870fbb2f5691d8243d1d24e4f38194576d609cb83e87b568f145a80e0b71031861cb5cac86e04bcc9f5064c2393cb3b302a15b102d1479e991e5
7
+ data.tar.gz: 357171bcf08e7c39a7588ad686a2166ebd5096aafd8e45981b6406543b0d86964a33371cd731f5c0f97667de24ff2dba244282458c13410cb3e7bd3231aacc83
@@ -30,7 +30,7 @@ module NNEClient
30
30
  end
31
31
 
32
32
  def client
33
- @client ||= Savon.client do |client|
33
+ @client ||= Savon.client(encoding: 'UTF-8') do |client|
34
34
  client.wsdl File.expand_path("../../../wsdl/nne.wsdl", __FILE__)
35
35
  client.read_timeout NNEClient.config.http_read_timeout
36
36
  client.log !!NNEClient.config.log
@@ -67,7 +67,9 @@ module NNEClient
67
67
  # List of additional_names
68
68
  def additional_names
69
69
  result = Fetch.new(tdc_id, :fetch_company_additional_names).result_set.to_hash
70
- Array(result[:array_ofstring][:item])
70
+ Array(result[:array_ofstring][:item]).map(&:strip).sort
71
+ rescue Savon::InvalidResponseError
72
+ []
71
73
  end
72
74
 
73
75
  # List of trades
@@ -1,3 +1,3 @@
1
1
  module NNEClient
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/nne_client.gemspec CHANGED
@@ -15,8 +15,10 @@ Gem::Specification.new do |gem|
15
15
  gem.name = "nne_client"
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = NNEClient::VERSION
18
- gem.add_dependency('savon', '~> 2.2')
18
+
19
+ gem.add_dependency('savon', '~> 2')
19
20
  gem.add_dependency('config_newton', '~> 0.1.1')
21
+
20
22
  gem.add_development_dependency('vcr')
21
23
  gem.add_development_dependency('fakeweb')
22
24
  gem.add_development_dependency('rspec')
data/spec/result_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe NNEClient::Result do
@@ -268,15 +269,14 @@ describe NNEClient::Result do
268
269
  soap_vcr('result_names') do
269
270
  result = NNEClient::Result.new(:official_name => 'Name', :tdc_id => '100055268')
270
271
  result.additional_names.should == [
271
- "A/S Kalundborg Folkeblad",
272
- "Aktieselskabet Holbæk Amts Venstreblad",
273
272
  "A/S Trykkeriet Nordvest",
274
273
  "A/S Trykkeriet Nordvestsjælland",
275
274
  "Havision A/S",
275
+ "Holbæk Amts Venstreblad A/S",
276
276
  "Nordvestsjællands Media Selskab A/S",
277
277
  "Radio Holbæk A/S",
278
- "Tv Holbæk A/S"
279
- ]
278
+ "TV Holbæk A/S"
279
+ ]
280
280
  end
281
281
  end
282
282
 
data/spec/spec_helper.rb CHANGED
@@ -7,6 +7,9 @@ HTTPI.log = false
7
7
 
8
8
  VCR.configure do |c|
9
9
  c.cassette_library_dir = 'spec/vcr_cassettes'
10
+ c.before_record do |i|
11
+ i.response.body.force_encoding('UTF-8')
12
+ end
10
13
  c.hook_into :fakeweb
11
14
  c.register_request_matcher :soap_body_matcher do |request_1, request_2|
12
15
  node_1 = Nokogiri::XML(request_1.body)
@@ -1,39 +1,68 @@
1
- ---
2
- recorded_with: VCR 2.1.1
3
- http_interactions:
4
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
5
4
  method: post
6
5
  uri: http://service.nnerhverv.dk/nne-ws/3.1/NNE
7
- body:
8
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://com.stibo.net/nne/3.1/NNE" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://com.stibo.net/nne/3.1/Types/NNE"><env:Body><wsdl:search env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><Question_1 xsi:type="nne:Question" xmlns:nne="http://com.stibo.net/nne/3.1/Types/NNE"><tdcId xsi:type="xsd:int">202541543</tdcId></Question_1><int_2 xsi:type="xsd:int">10</int_2><int_3 xsi:type="xsd:int">1</int_3><int_4 xsi:type="xsd:int">0</int_4><String_5 xsi:type="xsd:string"></String_5></wsdl:search></env:Body></env:Envelope>
9
- headers:
10
- accept:
11
- - "*/*"
12
- soapaction:
13
- - "\"search\""
14
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://com.stibo.net/nne/3.1/NNE"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://com.stibo.net/nne/3.1/Types/NNE"><env:Body><tns:search
11
+ env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><Question_1
12
+ xmlns:nne="http://com.stibo.net/nne/3.1/Types/NNE" xsi:type="nne:Question"><tdcId
13
+ xsi:type="xsd:int">202541543</tdcId></Question_1><int_2 xsi:type="xsd:int">10</int_2><int_3
14
+ xsi:type="xsd:int">1</int_3><int_4 xsi:type="xsd:int">0</int_4><String_5 xsi:type="xsd:string"/></tns:search></env:Body></env:Envelope>
15
+ headers:
16
+ soapaction:
17
+ - ! '"search"'
18
+ content-type:
15
19
  - text/xml;charset=UTF-8
16
- content-length:
17
- - "720"
18
- response:
19
- status:
20
+ content-length:
21
+ - '707'
22
+ accept:
23
+ - ! '*/*'
24
+ user-agent:
25
+ - Ruby
26
+ response:
27
+ status:
20
28
  code: 200
21
29
  message: OK
22
- headers:
23
- soapaction:
24
- - "\"\""
25
- content-type:
26
- - text/xml; charset="utf-8"
27
- date:
28
- - Tue, 15 May 2012 10:43:53 GMT
29
- server:
30
- - Microsoft-IIS/6.0
31
- x-powered-by:
32
- - ASP.NET
33
- connection:
30
+ headers:
31
+ date:
32
+ - Tue, 30 Dec 2014 12:40:12 GMT
33
+ server:
34
+ - Apache/2.2.15 (CentOS)
35
+ set-cookie:
36
+ - JSESSIONID=2170C229B94647EBE9E0AF6E69A26C51; Path=/nne-ws/3.1/; HttpOnly
37
+ accept:
38
+ - text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
39
+ connection:
34
40
  - close
35
- body:
36
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
37
- <env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns0=\"http://com.stibo.net/nne/3.1/Types/NNE\" env:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><env:Body><ans1:searchResponse xmlns:ans1=\"http://com.stibo.net/nne/3.1/NNE\"><result href=\"#ID1\"/></ans1:searchResponse><ns0:Answer id=\"ID1\" xsi:type=\"ns0:Answer\"><companyBasic href=\"#ID2\"/><errorMessage xsi:type=\"xsd:string\" xsi:nil=\"1\"/><window href=\"#ID3\"/></ns0:Answer><ns0:ArrayOfCompanyBasic id=\"ID2\" xsi:type=\"enc:Array\" enc:arrayType=\"ns0:CompanyBasic[1]\"><item href=\"#ID4\"/></ns0:ArrayOfCompanyBasic><ns0:Window id=\"ID3\" xsi:type=\"ns0:Window\"><currentPage xsi:type=\"xsd:int\">1</currentPage><from xsi:type=\"xsd:int\">1</from><to xsi:type=\"xsd:int\">1</to><total xsi:type=\"xsd:int\">1</total><totalPages xsi:type=\"xsd:int\">1</totalPages></ns0:Window><ns0:CompanyBasic id=\"ID4\" xsi:type=\"ns0:CompanyBasic\"><PNo xsi:type=\"xsd:int\">1015150161</PNo><adProtection xsi:type=\"xsd:int\">0</adProtection><companyId xsi:type=\"xsd:int\">4218680</companyId><companyType xsi:type=\"xsd:string\">PL</companyType><cvrNo xsi:type=\"xsd:int\">31999529</cvrNo><district xsi:type=\"xsd:string\">K\xC3\xB8benhavn NV</district><fax xsi:type=\"xsd:string\" xsi:nil=\"1\"/><officialName xsi:type=\"xsd:string\">Incremental V/ Jacob Atzen</officialName><phone xsi:type=\"xsd:string\">26256502</phone><street xsi:type=\"xsd:string\">Bygmestervej 47 3 tv</street><tdcId xsi:type=\"xsd:int\">202541543</tdcId><zipCode xsi:type=\"xsd:int\">2400</zipCode></ns0:CompanyBasic></env:Body></env:Envelope>"
38
- http_version: "1.1"
39
- recorded_at: Tue, 15 May 2012 10:43:54 GMT
41
+ transfer-encoding:
42
+ - chunked
43
+ content-type:
44
+ - text/xml;charset=utf-8
45
+ body:
46
+ encoding: UTF-8
47
+ string: ! '<?xml version="1.0" encoding="UTF-8"?>
48
+
49
+ <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
50
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
51
+ xmlns:ns0="http://com.stibo.net/nne/3.1/Types/NNE" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Body><ans1:searchResponse
52
+ xmlns:ans1="http://com.stibo.net/nne/3.1/NNE"><result href="#ID1"/></ans1:searchResponse><ns0:Answer
53
+ id="ID1" xsi:type="ns0:Answer"><companyBasic href="#ID2"/><errorMessage xsi:type="xsd:string"
54
+ xsi:nil="1"/><window href="#ID3"/></ns0:Answer><ns0:ArrayOfCompanyBasic id="ID2"
55
+ xsi:type="enc:Array" enc:arrayType="ns0:CompanyBasic[1]"><item href="#ID4"/></ns0:ArrayOfCompanyBasic><ns0:Window
56
+ id="ID3" xsi:type="ns0:Window"><currentPage xsi:type="xsd:int">1</currentPage><from
57
+ xsi:type="xsd:int">1</from><to xsi:type="xsd:int">1</to><total xsi:type="xsd:int">1</total><totalPages
58
+ xsi:type="xsd:int">1</totalPages></ns0:Window><ns0:CompanyBasic id="ID4" xsi:type="ns0:CompanyBasic"><PNo
59
+ xsi:type="xsd:int">1015150161</PNo><adProtection xsi:type="xsd:int">0</adProtection><companyId
60
+ xsi:type="xsd:int">4218680</companyId><companyType xsi:type="xsd:string">PL</companyType><cvrNo
61
+ xsi:type="xsd:int">31999529</cvrNo><district xsi:type="xsd:string">København
62
+ NV</district><fax xsi:type="xsd:string" xsi:nil="1"/><officialName xsi:type="xsd:string">Incremental
63
+ V/ Jacob Atzen</officialName><phone xsi:type="xsd:string">26256502</phone><street
64
+ xsi:type="xsd:string">Bygmestervej 47 3 tv</street><tdcId xsi:type="xsd:int">202541543</tdcId><zipCode
65
+ xsi:type="xsd:int">2400</zipCode></ns0:CompanyBasic></env:Body></env:Envelope>'
66
+ http_version: '1.1'
67
+ recorded_at: Tue, 30 Dec 2014 12:40:21 GMT
68
+ recorded_with: VCR 2.9.3
@@ -1,39 +1,72 @@
1
- ---
2
- recorded_with: VCR 2.1.1
3
- http_interactions:
4
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
5
4
  method: post
6
5
  uri: http://service.nnerhverv.dk/nne-ws/3.1/NNE
7
- body:
8
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://com.stibo.net/nne/3.1/NNE" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://com.stibo.net/nne/3.1/Types/NNE"><env:Body><wsdl:fetchCompanyAdditionalNames env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><int_1 xsi:type="xsd:int">100055268</int_1><int_2 xsi:type="xsd:int">0</int_2><String_3 xsi:type="xsd:string"></String_3><String_4 xsi:type="xsd:string"></String_4></wsdl:fetchCompanyAdditionalNames></env:Body></env:Envelope>
9
- headers:
10
- accept:
11
- - "*/*"
12
- soapaction:
13
- - "\"fetchCompanyAdditionalNames\""
14
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://com.stibo.net/nne/3.1/NNE"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://com.stibo.net/nne/3.1/Types/NNE"><env:Body><tns:fetchCompanyAdditionalNames
11
+ env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><int_1 xsi:type="xsd:int">100055268</int_1><int_2
12
+ xsi:type="xsd:int">0</int_2><String_3 xsi:type="xsd:string"/><String_4 xsi:type="xsd:string"/></tns:fetchCompanyAdditionalNames></env:Body></env:Envelope>
13
+ headers:
14
+ soapaction:
15
+ - ! '"fetchCompanyAdditionalNames"'
16
+ content-type:
15
17
  - text/xml;charset=UTF-8
16
- content-length:
17
- - "634"
18
- response:
19
- status:
18
+ content-length:
19
+ - '611'
20
+ accept:
21
+ - ! '*/*'
22
+ user-agent:
23
+ - Ruby
24
+ response:
25
+ status:
20
26
  code: 200
21
- message: OK
22
- headers:
23
- soapaction:
24
- - "\"\""
25
- content-type:
26
- - text/xml; charset="utf-8"
27
- date:
28
- - Tue, 15 May 2012 10:43:52 GMT
29
- server:
30
- - Microsoft-IIS/6.0
31
- x-powered-by:
32
- - ASP.NET
33
- connection:
34
- - close
35
- body:
36
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
37
- <env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns0=\"http://com.stibo.net/nne/3.1/Types/NNE\" env:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><env:Body><ans1:fetchCompanyAdditionalNamesResponse xmlns:ans1=\"http://com.stibo.net/nne/3.1/NNE\"><result href=\"#ID1\"/></ans1:fetchCompanyAdditionalNamesResponse><ns0:ArrayOfstring id=\"ID1\" xsi:type=\"enc:Array\" enc:arrayType=\"xsd:string[8]\"><item xsi:type=\"xsd:string\">A/S Kalundborg Folkeblad</item><item xsi:type=\"xsd:string\">Aktieselskabet Holb\xC3\xA6k Amts Venstreblad</item><item xsi:type=\"xsd:string\">A/S Trykkeriet Nordvest</item><item xsi:type=\"xsd:string\">A/S Trykkeriet Nordvestsj\xC3\xA6lland</item><item xsi:type=\"xsd:string\">Havision A/S</item><item xsi:type=\"xsd:string\">Nordvestsj\xC3\xA6llands Media Selskab A/S</item><item xsi:type=\"xsd:string\">Radio Holb\xC3\xA6k A/S</item><item xsi:type=\"xsd:string\">Tv Holb\xC3\xA6k A/S</item></ns0:ArrayOfstring></env:Body></env:Envelope>"
38
- http_version: "1.1"
39
- recorded_at: Tue, 15 May 2012 10:43:52 GMT
27
+ message: !binary |-
28
+ T0s=
29
+ headers:
30
+ !binary "ZGF0ZQ==":
31
+ - !binary |-
32
+ VHVlLCAzMCBEZWMgMjAxNCAxMjo0MDoxMiBHTVQ=
33
+ !binary "c2VydmVy":
34
+ - !binary |-
35
+ QXBhY2hlLzIuMi4xNSAoQ2VudE9TKQ==
36
+ !binary "c2V0LWNvb2tpZQ==":
37
+ - !binary |-
38
+ SlNFU1NJT05JRD00MUFGM0VGNzA0NDZEQjZGQUM4ODg2MUMwNzhERDA2MTsg
39
+ UGF0aD0vbm5lLXdzLzMuMS87IEh0dHBPbmx5
40
+ !binary "YWNjZXB0":
41
+ - !binary |-
42
+ dGV4dC94bWwsIHRleHQvaHRtbCwgaW1hZ2UvZ2lmLCBpbWFnZS9qcGVnLCAq
43
+ OyBxPS4yLCAqLyo7IHE9LjI=
44
+ !binary "Y29ubmVjdGlvbg==":
45
+ - !binary |-
46
+ Y2xvc2U=
47
+ !binary "dHJhbnNmZXItZW5jb2Rpbmc=":
48
+ - !binary |-
49
+ Y2h1bmtlZA==
50
+ !binary "Y29udGVudC10eXBl":
51
+ - !binary |-
52
+ dGV4dC94bWw7Y2hhcnNldD11dGYtOA==
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '<?xml version="1.0" encoding="UTF-8"?>
56
+
57
+ <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
58
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
59
+ xmlns:ns0="http://com.stibo.net/nne/3.1/Types/NNE" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Body><ans1:fetchCompanyAdditionalNamesResponse
60
+ xmlns:ans1="http://com.stibo.net/nne/3.1/NNE"><result href="#ID1"/></ans1:fetchCompanyAdditionalNamesResponse><ns0:ArrayOfstring
61
+ id="ID1" xsi:type="enc:Array" enc:arrayType="xsd:string[7]"><item xsi:type="xsd:string">A/S
62
+ Trykkeriet Nordvest </item><item
63
+ xsi:type="xsd:string">A/S Trykkeriet Nordvestsjælland </item><item
64
+ xsi:type="xsd:string">Havision A/S </item><item
65
+ xsi:type="xsd:string">Holbæk Amts Venstreblad A/S </item><item
66
+ xsi:type="xsd:string">Nordvestsjællands Media Selskab A/S </item><item
67
+ xsi:type="xsd:string">Radio Holbæk A/S </item><item
68
+ xsi:type="xsd:string">TV Holbæk A/S </item></ns0:ArrayOfstring></env:Body></env:Envelope>'
69
+ http_version: !binary |-
70
+ MS4x
71
+ recorded_at: Tue, 30 Dec 2014 12:40:21 GMT
72
+ recorded_with: VCR 2.9.3
@@ -1,39 +1,68 @@
1
- ---
2
- recorded_with: VCR 2.1.1
3
- http_interactions:
4
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
5
4
  method: post
6
5
  uri: http://service.nnerhverv.dk/nne-ws/3.1/NNE
7
- body:
8
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://com.stibo.net/nne/3.1/NNE" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://com.stibo.net/nne/3.1/Types/NNE"><env:Body><wsdl:fetchCompanyTrade env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><int_1 xsi:type="xsd:int">202541543</int_1><int_2 xsi:type="xsd:int">0</int_2><String_3 xsi:type="xsd:string"></String_3><String_4 xsi:type="xsd:string"></String_4></wsdl:fetchCompanyTrade></env:Body></env:Envelope>
9
- headers:
10
- accept:
11
- - "*/*"
12
- soapaction:
13
- - "\"fetchCompanyTrade\""
14
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://com.stibo.net/nne/3.1/NNE"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://com.stibo.net/nne/3.1/Types/NNE"><env:Body><tns:fetchCompanyTrade
11
+ env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><int_1 xsi:type="xsd:int">202541543</int_1><int_2
12
+ xsi:type="xsd:int">0</int_2><String_3 xsi:type="xsd:string"/><String_4 xsi:type="xsd:string"/></tns:fetchCompanyTrade></env:Body></env:Envelope>
13
+ headers:
14
+ soapaction:
15
+ - ! '"fetchCompanyTrade"'
16
+ content-type:
15
17
  - text/xml;charset=UTF-8
16
- content-length:
17
- - "614"
18
- response:
19
- status:
18
+ content-length:
19
+ - '591'
20
+ accept:
21
+ - ! '*/*'
22
+ user-agent:
23
+ - Ruby
24
+ response:
25
+ status:
20
26
  code: 200
21
- message: OK
22
- headers:
23
- soapaction:
24
- - "\"\""
25
- content-type:
26
- - text/xml; charset="utf-8"
27
- date:
28
- - Tue, 15 May 2012 10:43:57 GMT
29
- server:
30
- - Microsoft-IIS/6.0
31
- x-powered-by:
32
- - ASP.NET
33
- connection:
34
- - close
35
- body:
36
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
37
- <env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:enc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns0=\"http://com.stibo.net/nne/3.1/Types/NNE\" env:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><env:Body><ans1:fetchCompanyTradeResponse xmlns:ans1=\"http://com.stibo.net/nne/3.1/NNE\"><result href=\"#ID1\"/></ans1:fetchCompanyTradeResponse><ns0:ArrayOfTrade id=\"ID1\" xsi:type=\"enc:Array\" enc:arrayType=\"ns0:Trade[1]\"><item href=\"#ID2\"/></ns0:ArrayOfTrade><ns0:Trade id=\"ID2\" xsi:type=\"ns0:Trade\"><primary xsi:type=\"xsd:boolean\">true</primary><trade xsi:type=\"xsd:string\">Konsulentbistand vedr\xC3\xB8rende informationsteknologi</trade><tradeCode xsi:type=\"xsd:string\">620200</tradeCode></ns0:Trade></env:Body></env:Envelope>"
38
- http_version: "1.1"
39
- recorded_at: Tue, 15 May 2012 10:43:58 GMT
27
+ message: !binary |-
28
+ T0s=
29
+ headers:
30
+ !binary "ZGF0ZQ==":
31
+ - !binary |-
32
+ VHVlLCAzMCBEZWMgMjAxNCAxMjo0MDoxMiBHTVQ=
33
+ !binary "c2VydmVy":
34
+ - !binary |-
35
+ QXBhY2hlLzIuMi4xNSAoQ2VudE9TKQ==
36
+ !binary "c2V0LWNvb2tpZQ==":
37
+ - !binary |-
38
+ SlNFU1NJT05JRD04NjgzOUM5MUZFOEFDMTk2OTBGODc2RjZFQkVDQzQ2RTsg
39
+ UGF0aD0vbm5lLXdzLzMuMS87IEh0dHBPbmx5
40
+ !binary "YWNjZXB0":
41
+ - !binary |-
42
+ dGV4dC94bWwsIHRleHQvaHRtbCwgaW1hZ2UvZ2lmLCBpbWFnZS9qcGVnLCAq
43
+ OyBxPS4yLCAqLyo7IHE9LjI=
44
+ !binary "Y29ubmVjdGlvbg==":
45
+ - !binary |-
46
+ Y2xvc2U=
47
+ !binary "dHJhbnNmZXItZW5jb2Rpbmc=":
48
+ - !binary |-
49
+ Y2h1bmtlZA==
50
+ !binary "Y29udGVudC10eXBl":
51
+ - !binary |-
52
+ dGV4dC94bWw7Y2hhcnNldD11dGYtOA==
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '<?xml version="1.0" encoding="UTF-8"?>
56
+
57
+ <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
58
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
59
+ xmlns:ns0="http://com.stibo.net/nne/3.1/Types/NNE" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Body><ans1:fetchCompanyTradeResponse
60
+ xmlns:ans1="http://com.stibo.net/nne/3.1/NNE"><result href="#ID1"/></ans1:fetchCompanyTradeResponse><ns0:ArrayOfTrade
61
+ id="ID1" xsi:type="enc:Array" enc:arrayType="ns0:Trade[1]"><item href="#ID2"/></ns0:ArrayOfTrade><ns0:Trade
62
+ id="ID2" xsi:type="ns0:Trade"><primary xsi:type="xsd:boolean">true</primary><trade
63
+ xsi:type="xsd:string">Konsulentbistand vedrørende informationsteknologi</trade><tradeCode
64
+ xsi:type="xsd:string">620200</tradeCode></ns0:Trade></env:Body></env:Envelope>'
65
+ http_version: !binary |-
66
+ MS4x
67
+ recorded_at: Tue, 30 Dec 2014 12:40:22 GMT
68
+ recorded_with: VCR 2.9.3
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nne_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Atzen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-29 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.2'
19
+ version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.2'
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: config_newton
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.1.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.1.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: vcr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fakeweb
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: equivalent-xml
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.2.9
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.2.9
97
97
  description: Client library for the Navne & Numre Erhverv SOAP service
@@ -101,7 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - .gitignore
104
+ - ".gitignore"
105
105
  - Gemfile
106
106
  - History.md
107
107
  - LICENSE
@@ -163,17 +163,17 @@ require_paths:
163
163
  - lib
164
164
  required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.0.14
176
+ rubygems_version: 2.2.2
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: A small library easing integration with NNE