search for: web_service_scaffold

Displaying 20 results from an estimated 26 matches for "web_service_scaffold".

2009 Aug 25
5
uninitialized constant
...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....
2006 Apr 10
2
using web service for authenitcation
I am writting a web service for authenitcation of users and was using web_service_scaffold :invoke for testing it out...and was able to consume it using .NET. But my question is, whats the simplest method using which i can use the same web service in the current Web App. I mean, not from an external application or something but from the current web apps itself. I found one method in...
2006 Jul 13
1
Issue with Web Service
...llowing: 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 [ [''a'',''a''],[''b'',''b''],[''c'',''c'']] end end When I run the scaffold generated code I get back my string array. When I try to call this from .NET it sees it...
2008 May 07
1
uninitialized constant HelloadminController::HelloApi
...Api service api class HelloApi < ActionWebService::API::Base api_method :getMsg, :expects => [:name=>:string], :returns => [:string] end service controller class HelloController < ApplicationController wsdl_service_name ''Hello'' web_service_api HelloApi web_service_scaffold :invoke def getMsg(name) "Hello " + name end end client controller class HelloadminController < ApplicationController def getMsg hello_client = ActionWebService::Client::Soap.new(HelloApi, "http://localhost:3001/hello/api") @service_output= hello_client.getMsg(...
2006 Nov 04
1
layere dispatching - please help!
Hi Folks, I''m having trouble with setting up web services with layered dispatching. I''ve defined my controller (backend_controller.rb) as: class BackendController < ApplicationController web_service_dispatching_mode :layered web_service_scaffold :invoke web_service (:car) {CarService.new} end and my service (node_service.rb) as: class CarApi < ActionWebService::API::Base api_method :find_all_cars, :returns => [[:int]] api_method :find_car_by_id, :expects => [:int], :returns...
2006 Mar 02
1
web serveces problem
...!= ''0.25'' ''you are trying to talk with Tyra version 0.25 with a different version !'' else ''server and client versions match - 0.25'' end end end 3. app/controller/kate_controller.rb: class KateController < ApplicationController web_service_scaffold :invoke web_service_dispatching_mode :layered web_service :kate, KateAPIService.check_version end when I go to the browser to /myapp/kate/api i get: NoMethodError in <controller not set>#<action not set> undefined method `check_version'' for KateAPIService:Class and in the l...
2005 May 31
2
Rails Web Services
.../backend/invoke My error is: <code> Errno::ENOENT in Backend#invoke No such file or directory - /D:/Projects/Ruby/depot/public/D:/apps/ruby/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1.1337/lib/action_web_service/templates/scaffolds/methods.rhtml </code> This is because of the "web_service_scaffold :invoke" line, as seen below. I''ve also tried this by using an earlier gem version of rails (0.12.1, instead of the current 0.12.1.1337 beta gem) <code> # app/api/product_api.rb class ProductApi < ActionWebService::API::Base api_method :find_all_products,...
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 Then, my api is defined as follow: class DocumentsApi < ActionWebService::API::Base api_method :list, :returns => [:string] end But whe...
2006 Mar 28
11
ActionWebService date casting error
...t; 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'' web_service_scaffold :invoke def find_all_vobs Vob.find(:all).map{ |v| v.id } end def find_vob_by_id(id) Vob.find(id) end end mysql> describe vobs; +-------------------------+---------------+------+-----+---------------------+----------------+ | Field | Type | Null | Ke...
2006 Jan 04
5
Webservice External XMLRPC
...ss DirectSpoolService < ActionWebService::Base web_service_api DirectSpoolAPI def add(html,from) Customer.find(:first) end def remove end end class ApiController < ApplicationController skip_before_filter :login_required web_service_dispatching_mode :delegated web_service_scaffold :invoke web_service(:directspool) {DirectSpoolService.new} end The controller behaves fine when accessing it with : http://localhost:3003/api/invoke, and curl -d ''<?xml version="1.0" ?><methodCall><methodName>Add</methodName><params><param...
2006 Jan 06
6
AWS and array of Model
...User]] end class UserAdminService < ActionWebService::Base web_service_api UserAdminAPI def listUsers User.find(:all) end end class AdminController < ApplicationController wsdl_service_name ''Admin'' web_service_dispatching_mode :delegated web_service_scaffold :invoke web_service(:user) { UserAdminService.new } end What''s the problem? (If I change the return variable to :string and I in the implementation I use YAML.dump User.find(:all). It''s get back the value. the flul log: http://www.rafb.net/paste/results/PNmYct37.html Cow
2006 Jul 05
1
Process incoming SOAP requests?
We currently have a SOAP server that processes incoming requests. I''d like to rewrite this system (maintaining the same SOAP interfaces) utilizing RoR. What is the easiest way to go about this? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Jul 25
2
web services client problem
hi all, i have been trying to study web services using rails so far i succesful with server implementations in REST,SOAP,XML-RPC but the client code is troubling me. i have done most of the coding as per the rails book agile web development i.e implementations of the servers and when i invoke them they give result but when i try to acces them through another controller it gives time out error
2006 May 22
0
logger and ActionWebService - how can I get them to work together?
...;'t seem to get Logger to output anything to my ~/log/test.log file. Here''s an example: class LibraryServiceController < ApplicationController wsdl_service_name ''LibraryService'' web_service_api LibraryServiceApi # format is <controller_name>Api web_service_scaffold :invoke def new_item(username, type, title, length, size, state, unique_key) @user = User.find_by_login(username) logger.fatal(@user) puts @user true end end In #new_item I can''t get logger to output anything nor does my #puts go anywhere that I can find. (BTW...
2006 May 31
0
web service parameters
...and I want to do this: class UnifiedLoginApi < ActionWebService::API::Base api_method :GetMetadata, :returns => [ [CLL_ Metadata] ] but when I do: class UnifiedLoginController < ApplicationController wsdl_service_name ''UnifiedLogin'' web_service_scaffold :invoke def GetMetadata(metadata) metadata1 = CLL_Metadata.new metadata1.key = ''fdsafda'' metadata1.type = ''1'' metadata1.value = ''232'' collection = [ metadata 1] collection end end it throws me an error...
2006 Feb 06
0
Scaffold for AWS (webservice)?
Hi, Have I missed there being any (extra) scaffold capability in ActionWebService (AWS)? I know about web_service_scaffold placed within a Controller class, which generates WS functionality based on the Api. But might there somewhere be a means to get AWS generation of Api and Controller code that automatically exposes all an ActiveRecord model class''s CRUD member operations as WS, in a manner similar to...
2006 Nov 07
0
somebody is calling my setters in the webservices!!!
...@error_description = value end end and now, the webservice class UnifiedLoginApi < ActionWebService::API::Base api_method :test1, :returns => [CLL_Answer] end class UnifiedLoginController < ApplicationController wsdl_service_name ''UnifiedLogin'' web_service_scaffold :invoke def test1 answer = CLL_Answer.new answer.answer_description = "hello world!!!" answer end end well, I''m supposed to receive an answer structures, with the member answer_description with the value "hello world!!!", instead of that, I receive...
2006 Nov 21
2
before_filter in actionwebservice controller using direct dispatching
...ing mode? Or can I not have the authorize method in application.rb? undefined method `authorize'' for #<CustomerController:0x8ee54e0> class CustomerController < ActionController::Base after_filter :end_session before_filter :authorize web_service_dispatching_mode :direct web_service_scaffold :invoke web_service_api CustomerApi end Chris --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@publ...
2007 Jan 05
0
web service scaffolding: array and 2d array params
Hello, Currently when you build a web service with ActionWebService, you can generate a scaffold (using a command like "web_service_scaffold :invoke") that will allow you to call your web-enabled methods from the browser. Currently, if any of those parameters are arrays, you get the message "Typed array input fields not supported yet", and you can''t enter the parameter. Has anyone worked on adding this support?...
2007 Feb 28
0
AWS - XML-RPC Server
I am writing code to setup an AWS Server. I am able to test all the values accurately using web_service_scaffold :test, but when I try to connect by creating an XML-RPC client i am getting a timeout error = execution expired I am using delegated dispatching web_service_name: update_shipping method_name: update_product_status I am trying to test the function by implementing an XML-RPC client to connect with...