Displaying 2 results from an estimated 2 matches for "personapi".
Did you mean:
personali
2006 Jun 15
2
AWS Client - There has to be a better way
I''m working on building a SOAP client with AWS, i.e:
class PersonAPI < ActionWebService::API::Base
api_method :find_all, :returns => [[Person]]
end
soap_client = ActionWebService::Client::Soap.new(PersonAPI,
"http://...")
persons = soap_client.find_all
This works well but I think it breaks down quickly when you try to do
real world work. Lets...
2005 Feb 24
8
web services with ActionWebService
...s sort of thing.
Anyhow, I have a file, person_api.rb in my app/apis folder. I want to
take a single string as a parameter, and return an array of strings.
I''m not sure if I got the method signature stuff correct.
My current code for the app/apis/person_api.rb file is like this:
class PersonAPI < ActionWebService::API::Base
inflect_names false
api_method :friends, :returns => [[:string]], :expects => [
{:mboxhash => :string}
]
end
And then in my app/controllers/person_controller.rb file I have:
class PersonController < ApplicationController
layout...