washout_builder 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/washout_builder/dispatcher.rb +9 -13
- data/lib/washout_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjdjNmVjMTFiNGEzOGNjZmMwNjJhMGMwZGQzN2ZiNjNhMGJmNWMxOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWE0ZmU0MWQzYmZhMGQwZWM4MzUyNTkwOWY3N2Q3NzJjN2ViZTU3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTk5ZDEwNDg1ZDMwYmVkYTI2YjY5ZGFkMmJkMTRiMDY2ZWViNjEyZTQ0YTdj
|
10
|
+
NGNkMTU2OTkwOTljZjY3ZTY0ZmU3MmE1Y2UwYzg2NGRhZGJjNjA0OWEwZDU0
|
11
|
+
ZTE4YjE2NmNkYmJhOTczMGNiOGJjMjI4YzY5YjhmNWUxMjZjYjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzIyZDAwN2IwZTczMGJhNDViOWJhZTkxMjdkYWY1YTQyNDRjMTU5NjYzNmNi
|
14
|
+
YjU2NGExNGNkYzM1NTEyZGEzNTIwNDlmZjU2MzcxNDZjNTQ4NWZiYWMwMDY1
|
15
|
+
OGYxNDVhNDk3ODJhMGUwZmY5ZDE1Mjk1NWM2NTkwMDQwMDNlMzY=
|
@@ -5,37 +5,33 @@ module WashoutBuilder
|
|
5
5
|
# as a SOAP endpoint. It includes actions for generating WSDL and handling
|
6
6
|
# SOAP requests.
|
7
7
|
module Dispatcher
|
8
|
-
|
8
|
+
|
9
9
|
def _generate_doc
|
10
10
|
@map = self.class.soap_actions
|
11
11
|
@namespace = soap_config.namespace
|
12
12
|
@name = controller_path.gsub('/', '_')
|
13
13
|
@service = self.class.name.underscore.gsub("_controller", "").camelize
|
14
14
|
@endpoint = @namespace.gsub("/wsdl", "/action")
|
15
|
-
|
15
|
+
@soap_config = soap_config
|
16
16
|
|
17
17
|
render :template => "wash_with_html/doc", :layout => false,
|
18
18
|
:content_type => 'text/html'
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def self.included(controller)
|
22
|
-
controller.send :
|
23
|
-
controller.send :
|
24
|
-
controller.send :before_filter, :_parse_soap_parameters, :except => [
|
25
|
-
:_generate_wsdl, :_generate_doc, :_invalid_action ]
|
26
|
-
controller.send :before_filter, :_authenticate_wsse, :except => [
|
27
|
-
:_generate_wsdl,:_generate_doc,:_invalid_action ]
|
28
|
-
controller.send :before_filter, :_map_soap_parameters, :except => [
|
22
|
+
controller.send :helper,:washout_builder
|
23
|
+
controller.send :before_filter, :_authenticate_wsse, :except => [
|
29
24
|
:_generate_wsdl, :_generate_doc,:_invalid_action ]
|
30
|
-
controller.send :
|
25
|
+
controller.send :before_filter, :_map_soap_parameters, :except => [
|
26
|
+
:_generate_wsdl,:_generate_doc, :_invalid_action ]
|
31
27
|
controller.send :around_filter, :_catch_soap_faults
|
32
28
|
end
|
33
|
-
|
29
|
+
|
34
30
|
def _catch_soap_faults
|
35
31
|
yield
|
36
32
|
rescue => exception
|
37
33
|
if exception.class <= WashOut::Dispatcher::SOAPError
|
38
|
-
|
34
|
+
WashOut::Dispatcher.send(:render_soap_error,exception.message, exception.code)
|
39
35
|
else
|
40
36
|
raise exception
|
41
37
|
end
|