@ Robert Walker :
Thanks,
let me tell you what is my problem , m using ActionWebService.
and have two applications on is server and other is client.
In server:
I defined an api in which i have a function which will return list of
articles, let me show u that decleration:
api_method :get_baby_growth_articles,
:expects => [{:userid=>:string}, {:lastUpdateDate=>:date}],
:returns => [Article]
this is the function this will return objects of Articles when called by
the cliet.
and the function's definition defined in controller is :
def get_baby_growth_articles(login, lastUpdateDate)
unless is_registered(login)
return
end
return Article.find(:all,:conditions=>["updated_at =>
?",lastUpdateDate])
end
now if ill get its wsdl through url by giving
http://localhost:3000/baby_wise/wsdl
it simply returns wsdl
<message name="GetMaternalChangeArticlesResponse">
<part name="return" type="typens:Article"/>
</message>
you can see its return type which is "typens:Article"
now the problem is
i m accessing this function in my other application just a dummy client
applcation
where i defined the same api(which is necessary) as defined in the api
of server and the function's defination is same which is
api_method :get_baby_growth_articles,
:expects => [{:userid=>:string}, {:lastUpdateDate=>:date}],
:returns => [Article]
but here it doesnt recognize "Article".
as i have to return list form the server , so i used Article in the
function's decleration :returns => [Article]
notice: if i use :returns => [:string] it works , so the problem is
how can i return list.
hope u got it :$
thanx in advance.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---