search for: wsdl_service_name

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

2009 Aug 25
5
uninitialized constant
...onWebService::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 hel...
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 [ [''a'',''a''],[''b'',''b''],[''c'',''c'']] end end When I run the scaffold generated code I get back my str...
2008 May 07
1
uninitialized constant HelloadminController::HelloApi
...rror 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 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, "...
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 if @session[:loggedIn] return Project.find(:all) else raise NotLoggedIn, "You are not logged in!" end end def CreateProject(name) Project.creat...
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 < A...
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
...ons, 0 failures, 1 errors The freshly scaffolded files are: * app/apis/problem_api.rb class ProblemApi < ActionWebService::API::Base api_method :my_method end * app/controllers/problem_controller.rb class ProblemController < ApplicationController wsdl_service_name ''Problem'' def my_method end end * test/functional/problem_api_test.rb require File.dirname(__FILE__) + ''/../test_helper'' require ''problem_controller'' class ProblemController; def rescue_action(e) r...
2006 Mar 28
11
ActionWebService date casting error
...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'' 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; +-------------------------+---------------+------+-----+---------------------+----------------+ |...
2007 Jan 18
2
How to use API from AWS -- help!
...ermanagement, I have: 1) models/user.rb 2) controllers/user_controller.rb 3) apis/user_api.rb 1) Model: User.rb - This file just holds some business logic for maintaining the users. 2) Controller: class UserController < ApplicationController and below this line at the top of the file, I have: wsdl_service_name ''User'' web_service_api UserApi then my method implementations. 3) ApiDefinition: UserApi.rb - this file has all of my "api_method" calls and details what methods expect and return. Now, that''s how I''m setup, and I''ve tested all of this and f...
2006 Jan 31
2
Creating a web service with AWS
So I''ve read the Action Web Service bit of the documentation for a while, searched around and asked on the IRQ channel and I just can''t seem to get a simple Hello World type web service up and running with AWS on Rails. I have a file called hello_person_api.rb which looks like this: class HelloPersonAPI < ActionWebService::API::Base api_method :HelloName, :expects
2006 Jan 06
6
AWS and array of Model
...UserAdminAPI < ActionWebService::API::Base api_method :listUsers,:returns=>[[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...
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?
...ce framework that I''m looking to fall-back to the tried and true methodology of using print statements. However, I can''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...
2006 May 31
0
web service parameters
...: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: 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...
2006 Mar 17
0
Generating WSDL when using delegated or layered distpatching
...l works as advertised. When I configure for layered dispatch, the same invocation returns "unknown action". I''m assuming that this does not work because the actual methods are not implemented in the controller (as they are in direct) and perhaps there is something related to wsdl_service_name not being used (or required). Any help would be greatly appreciated. And if you happen to know how to get services to work when they are declared in modules, that would be great as well! TIA, Keith -- Posted via http://www.ruby-forum.com/.
2006 Nov 07
0
somebody is calling my setters in the webservices!!!
...e) @answer_description = nil @error = true @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...
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 < ActionWebService::API::Base inflect_names false api_method :ping, :expects => [{:sitename=>:s...
2006 Jan 31
0
webservice problem (cant make client)
...pi.rb class BackendApi < ActionWebService::API::Base api_method :authenticate, :expects => [{:twa =>:string},{:login =>:string},{:pass =>:string}], :returns => [{:responsecode =>:string}] end backend_controller.rb class BackendController < ApplicationController wsdl_service_name ''Backend'' web_service_api BackendApi web_service_scaffold :invoke # Constants TWA_INVALID = "TWA_INVALID" USER_NOT_FOUND = "USER_NOT_FOUND" USER_FOUND = "USER_FOUND" def authenticate(twa, login, pass) user = User.authenticate(log...
2006 May 17
3
WebServices: execution expired
...ave "execution expired" when I trying to test this web service: Pointed to: http://localhost:3000/news/list class NewsService < ActionWebService::Base web_service_api NewsApi def list [NewsTopic.new, NewsTopic.new] end end class NewsController < ApplicationController wsdl_service_name ''news'' web_service_dispatching_mode :delegated web_service :news, NewsService.new def list news = ActionWebService::Client::Soap.new( NewsApi, "http://localhost:3000/news/news") rsp = news.list render_text rsp.to_s end end Strange, but I have...
2006 Feb 20
3
Trouble connecting to a Rails SOAP web service with a simple Ruby client
...39; from /usr/local/lib/ruby/1.8/soap/rpc/driver.rb:297:in `find_product_by_id'' from client.rb:4 What''s wrong? Thanks, Peter ############## app/controllers/product_backend_controller.rb ############## class ProductBackendController < ApplicationController wsdl_service_name ''ProductBackend'' web_service_api ProductBackendApi web_service_scaffold :invoke def find_product_by_id(id) Product.find(id) end end ############## app/apis/product_backend_api.rb ############## class ProductBackendApi < ActionWebService::API::Base api_method :...
2005 May 31
2
Rails Web Services
...ervice::API::Base api_method :find_all_products, :returns => [[:int]] api_method :find_product_by_id, :expects => [:int], :returns => [Product] end # app/controllers/backend_controller.rb class BackendController < ApplicationController wsdl_service_name ''Backend'' web_service_api ProductApi web_service_scaffold :invoke def find_all_products Product.find(:all).map {|product| product.id} end def find_product_by_id(id) Product.find(id) end end </code> Am I missing something (besides ''miss...