Topic: problems with web services

hey, i'm a newbie on rails, and when i use the command "ruby script/generate web_service Backend find_all_products find_product_by_id" i get a message that says: "couldn't find web_service generator"... i look everiwhere and i still can't find how to fix it.

(i'm using rails 2.3.3 and ruby 1.8.6)

Re: problems with web services

Oh i almost forgot, i practice some examples but i couldn't run it well

hello_message_controller.rb:

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

Hello_message_api.rb:

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

when i open localhost:3000/hello_message/invoke i get the following:

NameError in Hello messageController#invoke

uninitialized constant HelloMessageController::HelloMessageApi

RAILS_ROOT: C:/Users/jsalazar/work/depot/webservice
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:105:in `const_missing'
C:/Users/jsalazar/work/depot/webservice/app/controllers/hello_message_controller.rb:3



Pleaaaase, i need help

Re: problems with web services

Hi..I am also having the problem like you..Thanks for your post..
Square peg Web