Displaying 1 result from an estimated 1 matches for "find_vob_by_id".
2006 Mar 28
11
ActionWebService date casting error
I have defined a web service to return information from a database as follows.
class BackendApi < ActionWebService::API::Base
api_method :find_all_vobs,
:returns => [[:int]]
api_method :find_vob_by_id,
:expects => [:int],
:returns => [Vob]
class BackendController < ApplicationController
wsdl_service_name ''Backend''
web_service_scaffold :invoke
def find_all_vobs
Vob.find(:all).map{ |v| v.id }
end
def find_vob_by_id(id)
Vob.f...