API->  hello_message_api.rb.

class HelloMessageApi < ActionWebService::API::Base
  api_method :hello_message, :expects => [{:firstname=>:string},
{:lastname=>:string}], :returns => [:string]

end


controller ->

class HelloMessageController < ApplicationController

web_service_api HelloMessageApi
 web_service_dispatching_mode :direct
  wsdl_service_name 'hello_message'
  web_service_scaffold :invoke

  def hello_message(firstname, lastname)
    return "Hello "+ firstname +" "+lastname
  end
end

but it givesthe following error
" uninitialized constant HelloMessageController::HelloMessageApi "
plz
help me out ??????????
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to