ruby_ICE_client 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_ICE_client.rb +5 -1
- data/lib/ruby_ICE_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad5f297923deae239f78ebc4d1d15ed42acbf146
|
4
|
+
data.tar.gz: c14f13b28153286b33c85e94e9987c77b8f3bdaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 697875289125bee31fa30ea02fd94d51ef561fffb7f25c41a449d13965cbe5dcd729cac5a34fa52ceb351689b918fbf468de033532383c0f96181a364f3af154
|
7
|
+
data.tar.gz: 7f5bd090b07c4178024f8c7139b2c268e98bf45931dbc0b0c31956777dc6008f9cdbce44f660b83e354c76da0d3a8365fe429c1a743a160d851cc2bff7ab7fdc
|
data/lib/ruby_ICE_client.rb
CHANGED
@@ -31,9 +31,13 @@ module RubyICEClient
|
|
31
31
|
ns = xml.doc.root.add_namespace_definition 'S', 'http://www.w3.org/2003/05/soap-envelope'
|
32
32
|
xml.doc.root.namespace = ns
|
33
33
|
xml.doc.root.child.namespace = ns
|
34
|
+
ns2 = xml.doc.root.child.child.add_namespace_definition 'ns2', 'http://www.w3.org/2003/05/soap-envelope'
|
35
|
+
xml.doc.root.child.child.namespace = ns2
|
34
36
|
|
35
37
|
uri = URI.parse url
|
36
38
|
http = Net::HTTP.new uri.host, uri.port
|
39
|
+
http.use_ssl = true
|
40
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
37
41
|
request = Net::HTTP::Post.new uri.path
|
38
42
|
request.body = xml.to_xml
|
39
43
|
response = http.request request
|
@@ -41,7 +45,7 @@ module RubyICEClient
|
|
41
45
|
puts "#{response_xml}"
|
42
46
|
output_message_node = response_xml.xpath '//evaluationResponse//base64EncodedPayload' if response_xml.present?
|
43
47
|
if output_message_node.present? && output_message_node.first.present?
|
44
|
-
return Base64.decode64 output_message_node.first.text
|
48
|
+
return Base64.decode64 output_message_node.first.text
|
45
49
|
else
|
46
50
|
return nil
|
47
51
|
end
|