Hi, i have generated web service api''s in "ruby on rails" , and i want to call those api''s inside my adobe flex application. this is my ruby code, ---------------------------------------------------------------------------------------------------------- class GalleryAPI < ActionWebService::API::Base api_method :foo, :expects=>[{:name=>:string}],:returns=>[:int] end class GalleryService < ActionWebService::Base web_service_api GalleryAPI def foo(name) puts name return 12 end end class GalleryController < ApplicationController web_service_dispatching_mode :delegated web_service_scaffold :invoke web_service :gp,GalleryService.new end ------------------------------------------------------------------------------------------------------------------------------------------------ this is what i have written in my flex application on button click event to call the function, -------------------------------------------------------------- <mx:Button click="{myWS.foo.send()}"/> <mx:WebService id="myWS" wsdl="http://localhost:3000/gallery/wsdl"> <mx:operation name="foo"> <mx:request xmlns="urn:ActionWebService"> <name> "sagar" </name> </mx:request> </mx:operation> </mx:WebService> ----------------------------------------------------------------------- and i am calling the api function on button click event as follows, myWS.foo.send() but it is giving me error as ************************************************** [RPC Fault faultString="Couldn''t find method ''foo'' in service." faultCode="Client.NoSuchMethod" faultDetail="null"] at mx.rpc.soap::Operation/ mx.rpc.soap:Operation::createFaultEvent() at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/ internal::invokePendingCall() at mx.rpc.soap::Operation/send() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc.soap.mxml::Operation/send() at testing/___Button1_click() ****************************************************** i do not know whats going wrong with me. plz help me!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---