I''ve tried this in direct and delegated modes. The web_service_api call consistently fails with error uninitialized constant CategoryApi models/category_service.rb: class CategoryService < ActionWebService::Base web_service_api CategoryApi def find(bc) end end controllers/category_controller.rb: class CategoryController < ApplicationController wsdl_service_name ''Category'' web_service_dispatching_mode :delegated web_service :find, CategoryService.find web_service_scaffold :invoke end apis/category_api.rb: class CategoryApi < ActionWebService::API::Base api_method :find, :expects => [{:term => :string}], :returns => [[Category]] end -- 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 -~----------~----~----~----~------~----~------~--~---
Try to move category_service.rb to apis directory. On 11/9/06, Tony Payne <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''ve tried this in direct and delegated modes. The web_service_api call > consistently fails with error uninitialized constant CategoryApi > > models/category_service.rb: > > class CategoryService < ActionWebService::Base > web_service_api CategoryApi > > def find(bc) > end > end > > controllers/category_controller.rb: > > class CategoryController < ApplicationController > wsdl_service_name ''Category'' > web_service_dispatching_mode :delegated > > web_service :find, CategoryService.find > web_service_scaffold :invoke > end > > apis/category_api.rb: > > class CategoryApi < ActionWebService::API::Base > api_method :find, :expects => [{:term => :string}], :returns => > [[Category]] > end > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Kent --- http://www.datanoise.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 -~----------~----~----~----~------~----~------~--~---
Thanks for the suggestion. I upgraded actionwebservice and it works now. Kent Sibilev wrote:> Try to move category_service.rb to apis directory. > > On 11/9/06, Tony Payne <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> end >> end >> >> > >> > > > -- > Kent > --- > http://www.datanoise.com-- 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 -~----------~----~----~----~------~----~------~--~---