Displaying 1 result from an estimated 1 matches for "carservice".
2006 Nov 04
1
layere dispatching - please help!
...aving trouble with setting up web services with layered
dispatching.
I''ve defined my controller (backend_controller.rb) as:
class BackendController < ApplicationController
web_service_dispatching_mode :layered
web_service_scaffold :invoke
web_service (:car) {CarService.new}
end
and my service (node_service.rb) as:
class CarApi < ActionWebService::API::Base
api_method :find_all_cars,
:returns => [[:int]]
api_method :find_car_by_id,
:expects => [:int],
:returns => [Car]
api_method :find_car_by_na...