Hello there,
I have a blessed app - running RailsSpace as a school project and is
required to include the ancient art of SOAPing in the application.
Here's what I've done so far :
created folder app/apis
created file app/apis/person_api.rb
created controller/person_controller.rb
added this to environment.rb :
config.load_paths += %W( #{RAILS_ROOT}/app/apis )
-----------------------
app/apis/person_api.rb
------------------------
class PersonApi < ActionWebService::API::Base
api_method :get_info,
:expects => [{:some_integer => :integer}],
:returns => [{:greeting => :string}]
end
----------------------------
app/controllers/person_controller.rb
-----------------------------
class PersonController < ApplicationController
web_service_api PersonApi
def get_info(user_id)
"w00t"
end
end
-------------
Am getting a 'uninitialized constant ActionWebService' so I added
require 'actionwebservice' to environment.rb
Mongrel refused to start after that - gem not found. I tried adding
actionwebservice via "Gems & Plugins" but it seems like it's already
added in the system.
Sifus, what should I do? It runs fine in my local machine though.
Many thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" 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/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---