From: gaurav bagga Date: 2006-08-22T13:42:46+09:00 Subject: Re: generating wsdl in ruby ------=_Part_21922_23388203.1156221764833 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline depot> ruby script/generate web_service Backend find_all_products find_product_by_id This generates a stub API definition. class BackendApi < ActionWebService::API::Base api_method :find_all_products api_method :find_product_by_id end And it generates a skeleton controller. class BackendController < ApplicationController wsdl_service_name 'Backend' def find_all_products end def find_product_by_id end end And it generates a sample functional test. We'll need to finish off the API definition. class BackendApi < ActionWebService::API::Base api_method :find_all_products, :returns => [[:int]] api_method :find_product_by_id, :expects => [:int], :returns => [Product] end wsdl_service_name 'Backend' The wsdl_service_name( ) method associates a name with the service that will be used in generated Web Services Definition Language (WSDL). It is not necessary, but setting it is recommended. i have picked the example from agile web development hope it helps ------=_Part_21922_23388203.1156221764833--