I''m trying to replace a legacy XML-RPC server with a Rails app, and all
is going really well, with one exception. I can''t find a way to allow
javaCaseMethods for XML-RPC calls. It seems Rails wants
CapsCaseMethods, ie:
auth.HasPermission # works
auth.hasPermission # nope
auth.has_permission # nope
Is it possible to get the second two working? Snippets of my AuthAPI:
class RpcController < ApplicationController
wsdl_service_name ''RPC''
web_service_dispatching_mode :layered
# Send auth.* to AuthService
web_service :auth, AuthService.new
end
class AuthAPI < ActionWebService::API::Base
api_method :has_permission,
:expects => [:string, :string, :string,
:string],
:returns => [:bool]
end
class AuthService < ActionWebService::Base
def has_permission(user_id, auth_object_key, permission_realm,
permission)
auth_object_id = AuthObject.convert_key_to_id(auth_object_key)
User.has_permission?(user_id, auth_object_id, permission_realm,
permission)
end
Thanks,
Nate
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---