similar to: rails not liking api folder

Displaying 20 results from an estimated 50000 matches similar to: "rails not liking api folder"

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 Jan 04
5
Webservice External XMLRPC
Hello i have some trouble getting my webservice to run . I have the following webservice : class DirectSpoolAPI < ActionWebService::API::Base api_method :add, :expects => [{:html=>:string},{:from=>:string}], :returns => [Customer] end class DirectSpoolService < ActionWebService::Base web_service_api DirectSpoolAPI def add(html,from) Customer.find(:first) end
2006 Jul 24
1
XMLRPC WebService and Structs
Hi First off, I apologise if this is covered somewhere and I just don''t get it... I''ve looked far and wide .... As a part of my current project I need to hook up to a particular XMLRPC webservice that won''t be available for me to use until close to launch date... So I am trying to recreate the webservice that mirrors the live one so I can test my application
2006 Apr 21
8
web services and dealing with before_filter
Hi all, I''ve got a Rails app with a ApplicationController that looks like this: class ApplicationController < ActionController::Base before_filter :authorize, :except => :login def authorize unless session[:user] flash[:notice] = "Please log in" session[:jumpto] = request.parameters redirect_to :controller =>
2006 Jan 26
1
Webservices and submitting object with associations
Hi - is there an easy way to submit an object with its associations as an :expects parameter to a AWS webservice? I know I could first create a webservice method for the object, and then call - in a loop - another webservice for each of my association objects. Is there an easier more elegant way, so that I don''t have to make so many expensive webservice calls? I was thinking
2006 Aug 08
0
Using class or global variable in rails - Are there any threading issues or race conditions?
Hi All I am newbie to Rails.. and I am trying to invoke a third party webservice using SOAP::RPC::Driver object. Now I can''t store that in session (it throws TypeError) so the next best thing (on the suggestion by Ola from this mailing list) I am storing it in Class variable or I can store this rpc_driver object in global variable. In brief my concerns are related to race conditions that
2006 Jan 07
0
Bug in rails?
Hi! The last 2 day''s I tried create WebService which get back ActiveRecord object, but it''s always get back error. Today I found why. In Mysql the boolean type is a int(1) alias, but in postgresql the boolean type is boolean(!). When in the database table contain boolean type the AWS going to crazy because it''s can''t recognize it. (It''s say:
2006 May 25
3
webservice timeout issue
I am having an issue where I am trying to test a weservice that I wrote by connecting to it from ruby. When I submit my form that calls the webservice it times out. you can see from the lighttpd log that the webservice completes just after the timeout. any ideas? am I doing something wrong? ---- source ---- def validate auth = ActionWebService::Client::Soap.new(AuthApi, "
2006 Jan 20
2
AWS and passing in a Model
Hi, I have a webservice. And I want to pass in, a model. So, for example: api_method :save_person, :expects => [Person] When I do this I get an error saying that I cannot have ActiveRecord objects as parameters. Fine. I can have AWS Structs as parameters. I don''t want to start ''maintaining'' a struct everytime I change the table structure od Persons. So, is
2006 Jan 20
1
XMLRPC::DateTime from AWS
When I do an XMLRPC webservice call to retrieve a single Product, my DateTime fields in the products table do not get converted to a valid DateTime value, but remain as XMLRPC::DateTime structures. So, say my webservice call is: @product = @aws.get_product(1) Then my @product object looks like this: name: My product last_updated: #<XMLRPC::DateTime:0x37c5338> description: This is my
2006 Mar 16
1
rails3 - example of Amazon S3 on rails
Hi I''ve done a small rails application for file management on Amazon''s new service, the storage webservice ''Amazon S3'' (at this time just upload, list and delete methods are implemented). Maybe someone find it useful as example. The source code and a little more information can be found here: http://caffo.backpackit.com/pub/502395 Best regards Rodrigo Franco
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
Hello. I hope this is the right place to describe my problem ? After upgrading to Rails version 1.1.2 from rails version 1.0.0, Web Service functional tests seem broken. I upgraded rails (as the root user / administrator) with: # gem update rails --include-dependencies then I upgraded my application (as myself) with: ? rake rails:update % rake rails:update:configs After these steps,
2006 Apr 14
0
Rails AWS questions
I need to implement an API for my web app but i had some questions before diving into the code for it. I was hoping to get some help from you experience individuals and rails rock stars. 1. Is there a way to add authentication/login so api methods cant execute without proper credentials? Mainly, I want to be able to track activity from different people using the api and also want to keep out
2006 Jul 31
5
ActionWebService API
Hi *, I need to pass a hash to a webservice, so I defined my API with: api_method :search, :expects => [{ :tags => :string, :assignment => :string, :resource => :string, :lesson_plan => :string, :subject => :string, :all_types => :string }], :returns => [[Resource]] when I try to test the webservice with scaffold the
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
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 Jul 27
7
WebService
Hi all! how do I make a WebService using rails? thaks ! -- Cordialmente, Carlos J?nior <junior@boanoitebh.com> (31) 9244-6543 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/f52d1e1c/attachment.html
2006 Apr 19
2
Tools rund um Rails
Hallo zusammen, dann will ich mal wieder ein bi?chen Schwung auf die RoR-Liste bringen: Schildert doch einfach mal eure Erfahrungen mit Tools rund um Rails, also zum Beispiel Capistrano (formerly known as Switchtower), RadRails etc. Welche Plugins setzt ihr ein, von welchen w?rdet ihr abraten? Oder folgt ihr dem Tenor "Reuse is overrated" und schreibt euch die Sachen lieber neu? --
2006 May 24
0
webservice integration test?
Hey railers, I''m a newbie, so excuse me if the answer is obvious. We''re using a layered dispatch model for our back-end and I''d like to run some integration tests for things login and session authentication. The integration examples I''ve seen, however, make get/post calls to controllers and not web services. How would I do a sess.post w/ SOAP headers? Do I
2009 Jun 05
1
Slow/unpredictive response of post_form from rails lib
Hi friends, I''m facing a very strange problem... I consume a webservice from within my rails app. I''ve written a thin wrapper around the webservice using Net::HTTP.post_form However, when calling the API from within my controllers, the API calls randomly fail, complaining about timeout. But - when I wrote a simple iterative test (500 iterations), calling the same webservice