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