soap4juddi 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9880214023557b4e5352406f91b0709171499af
4
- data.tar.gz: 7ca77a27d153e91a24f88dc1d14707d9eef5bd0c
3
+ metadata.gz: 0040c3735b4aaeca42579ef088535d775a78679d
4
+ data.tar.gz: 51ec6bcdee10059ab5692376312760b9f465cad6
5
5
  SHA512:
6
- metadata.gz: 7f74a600b307911984cb04dbefe228e19d3683a17cad206fe756c86fb8510bcdcf69665fc7a81e1fc70a62b823fd33b689d158cccdf7fd34815d758cb58154d3
7
- data.tar.gz: b6f3dd7c88f6ac87034ebe2591969eada3bb558153180a22d882a9581d0a70554dcdbec415e8624371c82ba6ad535f27d233ef619b7ddbfa64c3db26543739e1
6
+ metadata.gz: 454dd8e02f7674c1c0cc99599afcf2649891f2e7a3a48d883593750bb834a9c2a66811d6818bfda7757491c0d41fc86ac3e9426d0339bb8f919f2c38d08bff26
7
+ data.tar.gz: f639f7195ea3202bb29f326cb68b3d19b1cbffda65b36be54f8fd4d34e89f598edc5eae4610a2bdeca7253fa3fe046243265f04def3130a12171e7e8732f42cd
@@ -56,7 +56,7 @@ module Soap4juddi
56
56
  end
57
57
  end
58
58
 
59
- def find_services(pattern)
59
+ def find_services(pattern, urn = 'services')
60
60
  qualifier1 = @soap_xml.element_with_value('findQualifier', 'approximateMatch')
61
61
  qualifier2 = @soap_xml.element_with_value('findQualifier', 'orAllKeys')
62
62
  qualifiers = @soap_xml.element_with_value('findQualifiers', "#{qualifier1}#{qualifier2}")
@@ -67,13 +67,7 @@ module Soap4juddi
67
67
  end
68
68
 
69
69
  def find_service_components(pattern)
70
- qualifier1 = @soap_xml.element_with_value('findQualifier', 'approximateMatch')
71
- qualifier2 = @soap_xml.element_with_value('findQualifier', 'orAllKeys')
72
- qualifiers = @soap_xml.element_with_value('findQualifiers', "#{qualifier1}#{qualifier2}")
73
- xml = @soap_xml.element_with_value('name', pattern)
74
- @soap_connector.request_soap(@base_uri, 'inquiryv2', 'find_service', "#{qualifiers} #{xml}") do |res|
75
- extract_service_entries_elements(res.body, @urns['service-components'])
76
- end
70
+ find_services(pattern, @urns['service-components'])
77
71
  end
78
72
 
79
73
  def find_element_bindings(name, urn)
@@ -140,6 +134,16 @@ module Soap4juddi
140
134
  entries
141
135
  end
142
136
 
137
+ def authenticate(auth_user, auth_password)
138
+ @soap_connector.authenticate(auth_user, auth_password)
139
+ end
140
+
141
+ def authorize
142
+ @auth_token = @soap_connector.authorize(@base_uri)
143
+ end
144
+
145
+ private
146
+
143
147
  def extract_service_entries_elements(soap, urn)
144
148
  entries = {}
145
149
  entry = soap[/<ns2:serviceInfos>(.*?)<\/ns2:serviceInfos>/, 1]
@@ -171,16 +175,6 @@ module Soap4juddi
171
175
  end
172
176
  { 'businesses' => entries }
173
177
  end
174
-
175
- def authenticate(auth_user, auth_password)
176
- @soap_connector.authenticate(auth_user, auth_password)
177
- end
178
-
179
- def authorize
180
- @auth_token = @soap_connector.authorize(@base_uri)
181
- end
182
-
183
- private
184
178
 
185
179
  def add_descriptions(body, descriptions)
186
180
  if (descriptions) and (not descriptions.empty?)
@@ -1,3 +1,3 @@
1
1
  module Soap4juddi
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soap4juddi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler