Hello,
I am having a problem with an extremely simple web service using
ActionWebService. This is basically ''Hello World'' type of web
service:
data_loader_api.rb:
<pre>
class DataLoaderApi < ActionWebService::API::Base
api_method :version, :returns => [:string]
end
</pre>
data_loader_controller.rb:
<pre>
class DataLoaderController < ApplicationController
web_service_dispatching_mode :direct
wsdl_service_name ''data_loader''
web_service_scaffold :invoke
web_service_api DataLoaderApi
def version
return "1.0"
end
end
</pre>
Regardless how I tweak the definition of the method I always get the
following error:
ActionWebService::Dispatcher::DispatcherError in
DataLoaderController#invoke_submit
no such method ''Version'' on API DataLoaderApi (version)
Your help will be greatly appreciated. Thank you in advance.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---