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 +4 -4
- data/lib/soap4juddi/broker.rb +12 -18
- data/lib/soap4juddi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0040c3735b4aaeca42579ef088535d775a78679d
|
4
|
+
data.tar.gz: 51ec6bcdee10059ab5692376312760b9f465cad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 454dd8e02f7674c1c0cc99599afcf2649891f2e7a3a48d883593750bb834a9c2a66811d6818bfda7757491c0d41fc86ac3e9426d0339bb8f919f2c38d08bff26
|
7
|
+
data.tar.gz: f639f7195ea3202bb29f326cb68b3d19b1cbffda65b36be54f8fd4d34e89f598edc5eae4610a2bdeca7253fa3fe046243265f04def3130a12171e7e8732f42cd
|
data/lib/soap4juddi/broker.rb
CHANGED
@@ -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
|
-
|
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?)
|
data/lib/soap4juddi/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|