Displaying 2 results from an estimated 2 matches for "find_user_by_id".
2006 May 02
3
web services on the client side
...he filename for my user api on the server application. I have
this in my controller:
class RemoteInfoController < ApplicationController
web_client_api :user,
:soap,
"http://my_ip_address/server/backend/api"
def list
@users = user.find_all_users.map do |id|
user.find_user_by_id(id)
end
end
def index
end
end
Am I supposed to have a user_api.rb file on the client application too,
or have I just made a mistake?
--
Posted via http://www.ruby-forum.com/.
2006 May 02
0
RE: Rails Digest, Vol 20, Issue 39
....org
> Message-ID: <993b91e9f064e9a32ccdaa544c5737dd@ruby-forum.com>
> Content-Type: text/plain; charset=utf-8
>
> yes, you need apis/user_api.rb and you''d provide the method signature
> for the api call there with api_method
>
> such as
>
> api_method find_user_by_id,
> :expects => {:id => :int},
> :returns => {:user }
>
> please note that I am not expert in this area. For complete info, see
> this HowTo article on rails site.
>
> http://wiki.rubyonrails.com/rails/pages/How+To+Consume+.NET+WebServices
>
> also, if...