Permalink
Browse files

Temporary changes

  • Loading branch information...
1 parent 84b60ad commit 4eb3cf9f47fcdc9ba9f6e09b22e2a5cbece5fad7 @armanddp committed Nov 25, 2011
View
1 lib/action_web_service/dispatcher/abstract.rb
@@ -12,6 +12,7 @@ def initialize(*args)
def self.included(base) # :nodoc:
base.class_inheritable_option(:web_service_dispatching_mode, :direct)
+ base.class_inheritable_option(:web_service_base_address, "/")
base.class_inheritable_option(:web_service_inflect_type, false)
base.class_inheritable_option(:web_service_exception_reporting, true)
base.send(:include, ActionWebService::Dispatcher::InstanceMethods)
View
3 lib/action_web_service/dispatcher/action_controller_dispatcher.rb
@@ -165,12 +165,13 @@ def wsdl
private
def base_uri
host = request.host_with_port
- relative_url_root = ::ActionController::Base.relative_url_root
+ relative_url_root = web_service_base_address
scheme = request.ssl? ? 'https' : 'http'
'%s://%s%s/%s/' % [scheme, host, relative_url_root, self.class.controller_path]
end
def to_wsdl
+ debugger
xml = ''
inflect = web_service_inflect_type
dispatching_mode = web_service_dispatching_mode
View
1 pkg/actionwebservice-3.0.5/lib/action_web_service/dispatcher/abstract.rb
@@ -12,6 +12,7 @@ def initialize(*args)
def self.included(base) # :nodoc:
base.class_inheritable_option(:web_service_dispatching_mode, :direct)
+ base.class_inheritable_option(:web_service_base_address, "/")
base.class_inheritable_option(:web_service_inflect_type, false)
base.class_inheritable_option(:web_service_exception_reporting, true)
base.send(:include, ActionWebService::Dispatcher::InstanceMethods)
View
3 pkg/actionwebservice-3.0.5/lib/action_web_service/dispatcher/action_controller_dispatcher.rb
@@ -165,12 +165,13 @@ def wsdl
private
def base_uri
host = request.host_with_port
- relative_url_root = ::ActionController::Base.relative_url_root
+ relative_url_root = web_service_base_address
scheme = request.ssl? ? 'https' : 'http'
'%s://%s%s/%s/' % [scheme, host, relative_url_root, self.class.controller_path]
end
def to_wsdl
+ debugger
xml = ''
inflect = web_service_inflect_type
dispatching_mode = web_service_dispatching_mode

0 comments on commit 4eb3cf9

Please sign in to comment.