Displaying 1 result from an estimated 1 matches for "productbackendapi".
2006 Feb 20
3
Trouble connecting to a Rails SOAP web service with a simple Ruby client
...d_product_by_id''
from client.rb:4
What''s wrong?
Thanks,
Peter
############## app/controllers/product_backend_controller.rb ##############
class ProductBackendController < ApplicationController
wsdl_service_name ''ProductBackend''
web_service_api ProductBackendApi
web_service_scaffold :invoke
def find_product_by_id(id)
Product.find(id)
end
end
############## app/apis/product_backend_api.rb ##############
class ProductBackendApi < ActionWebService::API::Base
api_method :find_product_by_id,
:expects => [:int],
:r...