aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
diff options
context:
space:
mode:
authorLeon Breedt <bitserf@gmail.com>2005-04-16 19:29:42 +0000
committerLeon Breedt <bitserf@gmail.com>2005-04-16 19:29:42 +0000
commit7f32666924493fb21a72ad56fb2cf4091aad4141 (patch)
tree8abd737c826d3441a4a9df69c1f7afbc76d599c0 /actionwebservice/lib/action_web_service/dispatcher/abstract.rb
parent6ee06ebec6814576b16f6438c89fb53d557305c2 (diff)
downloadrails-7f32666924493fb21a72ad56fb2cf4091aad4141.tar.gz
rails-7f32666924493fb21a72ad56fb2cf4091aad4141.tar.bz2
rails-7f32666924493fb21a72ad56fb2cf4091aad4141.zip
Remove a cause of casting failure for XML-RPC by ignoring structure members not
defined in the target type, and perform more sanity checks to make more obvious what the resolution should be when neglecting to provide a valid signature or failing to attach an API to a service implementation class. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/dispatcher/abstract.rb')
-rw-r--r--actionwebservice/lib/action_web_service/dispatcher/abstract.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
index 1d8715a8f7..bec38d8c1c 100644
--- a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
+++ b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
@@ -73,6 +73,9 @@ module ActionWebService # :nodoc:
invocation.service = web_service_object(invocation.service_name)
invocation.api = invocation.service.class.web_service_api
end
+ if invocation.api.nil?
+ raise(DispatcherError, "no API attached to #{invocation.service.class}")
+ end
invocation.protocol.register_api(invocation.api)
request.api = invocation.api
if invocation.api.has_public_api_method?(public_method_name)