AWS controller not loading API

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

Thanks for the suggestion. I upgraded actionwebservice and it works now.

Kent S. wrote:

Try to move category_service.rb to apis directory.

On 11/9/06, Tony P. [email protected] wrote:

end
end


Kent

http://www.datanoise.com

Try to move category_service.rb to apis directory.

On 11/9/06, Tony P. [email protected] wrote:

end
end


Kent

http://www.datanoise.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs