similar to: logger and ActionWebService - how can I get them to work together?

Displaying 20 results from an estimated 500 matches similar to: "logger and ActionWebService - how can I get them to work together?"

2008 May 07
1
uninitialized constant HelloadminController::HelloApi
I have built up a simple allication for web service interaction. But the following error message occured: uninitialized constant HelloadminController::HelloApi service api class HelloApi < ActionWebService::API::Base api_method :getMsg, :expects => [:name=>:string], :returns => [:string] end service controller class HelloController < ApplicationController
2006 Aug 18
0
AJAX question
Dear all, Help me get a simple AJAX behavior right. I know zero AJAX, thus please advice. Below is a simplification of the real code and I hope I can describe my intention clearly. class StoreController < ApplicationController def show_cart @cart = Cart.new @new_item = CartItem.new end def add_item @new_item = CartItem.new(params[:new_item]) if
2006 Aug 18
0
Simple AJAX question
Dear all, Help me get a simple AJAX behavior right. I know zero AJAX, thus please advice. Below is a simplification of the real code and I hope I can describe my intention clearly. class StoreController < ApplicationController def show_cart @cart = Cart.new @new_item = CartItem.new end def add_item @new_item = CartItem.new(params[:new_item]) if @new_item.valid?
2010 Nov 02
0
webservice - get client ip address
Hi I have the following problem in my application I have in the controller: class XmlrpcController < ApplicationController web_service_dispatching_mode :layered wsdl_service_name ''weblogUpdates.ping'' web_service_scaffold :invoke web_service :weblogUpdates, WeblogUpdates.new end in the api definition file: ------- class WeblogUpdatesApi <
2006 Jan 31
0
webservice problem (cant make client)
hey, i have made a webservice http://twodecode.pilot.localhost.be:3000/backend/wsdl here i can see the wsdl file i have a method string Authenticate(string twa, string login, string pass) when i do /invoke i can test it, this all works backend_api.rb class BackendApi < ActionWebService::API::Base api_method :authenticate, :expects => [{:twa =>:string},{:login
2005 May 31
2
Rails Web Services
This deals with the Rails book, but ActionWebService in general. I''m having trouble getting the Rails book''s example in the Web Service chapter working. Everything else works (all the ''depot'' site features up to that point have been built and work). I don''t think it''s an issue with the book code being wrong, because the ActionWebService API
2006 Nov 21
2
before_filter in actionwebservice controller using direct dispatching
The docs say that for direct dispatching mode to use controller filters, but when the controller is run I get the following error. The authorize method is in application.rb. Works fine when it''s not a web service api. Should I be using before_invocation instead even with direct dispatching mode? Or can I not have the authorize method in application.rb? undefined method
2009 Aug 25
5
uninitialized constant
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
2006 Mar 26
4
Updating query results in real time with AJAX
I have the following view template: <%= form_remote_tag :update => "new_item", :url => {:action => ''create''}, :before => %(Element.show(''spinner'')), :success => %(Element.hide(''spinner'')) %> <div id="new_item"> </div>
2006 Sep 11
5
WebServices & controllers
Hi, I am having problems with REST web-service support. I have a simple controller: class DocumentsController < ApplicationController wsdl_service_name ''Documents'' web_service_api DocumentsApi web_service_scaffold :invoke def list @docs = Document.find(:all) respond_to do |wants| wants.html wants.xml { return @docs .to_xml } end end end
2006 Feb 20
3
Trouble connecting to a Rails SOAP web service with a simple Ruby client
Hi, The code for my Rails webservice is below. It working just fine through the Rails web service scaffold invoke http://localhost:3000/ProductBackend/invoke I''m trying to write a plain ruby command line client to access the webservice. require ''soap/rpc/driver'' proxy = SOAP::RPC::Driver.new("http://localhost:3000/product_backend",
2006 Jan 06
6
AWS and array of Model
Hi! I try to use a layered webservice and I want to get back an array of users; In the API I use: api_method :listUsers,:returns=>[[User]] in the service: def listUsers User.find(:all) end Result in soap mode: Don''t know how to cast TrueClass to Object Result in XML-RPC mode: You have a nil object when you didn''t expect it! You might have expected
2006 Jul 11
1
Problems using the authorization plugin from Bill Katz
Hello everyone, I was trying to set up access control in a new application Im working on, I''m trying to use the excellent authorization plugin from Bill Katz, Its pretty straight forward to setup and should be to use. But when i try to give the same permission on two differents users on the same object i get an error. (Well , Im kinda new to all this rails stuff) r = Red.find(1) u1 =
2006 Jun 07
0
Logger in ActionWebService::Base?
I''d like to split up my directly dispatched controller into a layered dispatch setup with one controller and two services derived from ActionWebService::Base. However, in doing this I found that logger is not a class_variable of AWS::Base. This kind of scares me away from using the layered dispatch mode, as I''d like to have logging in the method implementations. Is there a clean
2008 May 07
1
Actionwebservice
I am just learning some about web service. But many guys still use Java (Jws). But I wanna try ROR. There are less information about it. I can''t get install plugin in the ROR 2.0.x. So I followed the standard textbook("Agile_Web_Development_With_Rails-2nd" and "Ruby on Rails for PHP and Java Developers") I almost finished it. However, I can''t find my api
2006 Jul 13
1
Issue with Web Service
I have the following: File: subscription_api.rb class SubscriptionApi < ActionWebService::API::Base api_method :newTest, :returns => [ [[:string]] ] end File: subscription_controller.rb class SubscriptionController < ApplicationController wsdl_service_name ''Subscription'' web_service_scaffold :invoke def newTest() return [
2006 Jan 12
2
Web services and login?
Has anyone managed to do this? I thought about using sessions but they dont want to work for me... Here''s what I''m doing as a little test: class NotLoggedIn < Exception end class ProjectsController < ApplicationController wsdl_service_name ''Projects'' web_service_api ProjectsApi def Login @session[:loggedIn] = true end def GetProjects
2006 May 31
0
web service parameters
Can I return an structure array from a web service in rails? I have this: class CLL_Metadata < ActionWebService::Struct member :key, :string member :type, :string end and I want to do this: class UnifiedLoginApi < ActionWebService::API::Base api_method :GetMetadata, :returns => [ [CLL_ Metadata] ] but when I do:
2006 Nov 07
0
somebody is calling my setters in the webservices!!!
a simple code to define a web service structures: class CLL_Answer < CLL_Struct member :answer, :bool member :answer_description, :string member :error, :bool member :error_description, :string # This is my setter def error_description=(value) @answer_description = nil @error = true @error_description = value end end and now, the
2006 Mar 28
11
ActionWebService date casting error
I have defined a web service to return information from a database as follows. class BackendApi < ActionWebService::API::Base api_method :find_all_vobs, :returns => [[:int]] api_method :find_vob_by_id, :expects => [:int], :returns => [Vob] class BackendController < ApplicationController wsdl_service_name ''Backend''