On Tue, Jun 23, 2009 at 10:58 PM, Hamid Raza <
[email protected]> wrote:
>
> I need to return list of objects(e.g. users, articles etc) through
>
> ActionWebService::API::Base
>
> class BabyWiseApi < ActionWebService::API::Base
>
> api_method :is_new_update_available,
> :expects => [{:login=>:string},
> {:lastUpdatePerformed=>:date}],
> :returns => [:boolean]
>
> api_method :get_baby_growth_articles,
> :expects => [{:userid=>:string}, {:lastUpdateDate=>:date}],
> :returns => [Article]
>
> api_method :get_quotes,
> :expects => [{:userid=>:string}, {:lastUpdateDate=>:date}],
> :returns => [:string]
> end
>
>
> this is how i m returning , it works fine at the server end.
>
> but when i write a client application to call the methods of web service
> there i have to define the same api class , like i mentioned up.
>
> the problem i m facing iz , in the client side it does recognize
> "Article" object as there is not any model defined at the clinet end.
>
>
> please tell me if there is any other way to return the list of objects
> and how to get that list.
>
> thx in advance
> --
> Posted via http://www.ruby-forum.com/.
>
How are you calling it and what error messages are you receiving?
-Conrad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---