similar to: A Struct inside of a Struct

Displaying 20 results from an estimated 6000 matches similar to: "A Struct inside of a Struct"

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 Jul 28
3
ActionWebService Struct member name including ''-''
Hi I am tryng to mirror a locked away, secure web service for testing purposes and am almost there. Hoever as part of the definition for the structure of the call to the webservice, I have this struct. class MyCall < ActionWebService::Struct member :username, :string member :password, :string member :"remote-ip", :string end However this does not work... Should
2006 Aug 16
7
ActionWebService: XMLRPC Server Multicall possible?
Hi all, I have a question concerning ActionWebService XMLRPC servers: Is it possible to send multicall requests to the Web service? I tried to use multicall and get the error message: no such method ''system.multicall'' on API [MyAPI] In Changeset 2021 there is the following commit message: add ''system.multicall'' support to XML-RPC. boxcarred methods must
2006 May 02
1
SOAP client not seeing all of my AWS service methods
Hi all, Ruby 1.8.4 Rails 1.1.2 I''m a newb when it comes to SOAP, but I thought I''d give it a shot. I have several web services defined. However, when I try to connect with a SOAP client it seems the client is only picking up one of the services, called Hardware. require ''soap/wsdlDriver'' wsdl_url =
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi, I''m interested in using a currency conversion web service in my rails app. Does anyone have a free service that they use and like? I found this one http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10 I''ve tried to make a simple, plain Ruby script to connect to this and get a conversion rate without success. How do I integrate a webservice into my rails app? I
2006 Jan 30
3
Arrays of objects as parameters to webservices
I think I am missing something terribly obvious. Is it possible to have an :expects parameter for a webservice that is an array of objects? I want to have a single webservice that expects all my line items (for an order). Is this something that is possible? -- Posted via http://www.ruby-forum.com/.
2009 Jan 28
1
stack data sets
Hi All, I'm generating 10 different data sets with 1 and 0 in a matrix form and writing the output in separate files. Now I need to stack all these data sets in one vector and I know that stack only operates on list or data frame however I got these data sets by converting list to a matrix so can't go backwards now. Is there a way i can still use Stack? Please see the program:
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 May 17
6
Problem Consuming a Web Service
I''m trying to consume a webservice from my rails application and have discovered an interesting problem. I can call webservice functions just fine, as long as they do not require any arguments, but function that do require arguments do not work. The arguments are sent as either null or an empty string. My API has these method definitions: api_method :otherFunction,
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 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 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 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
2010 Jun 26
1
Passing the parameter (file name) to png()
I am fitting 3 parameter model to my response matrix and want to generate item characterstic curve. I want to specify file name to save item characterstic curve by passing it as external parameter to the R batch script. The following is the code I have written for this. *R Script:* library(ltm) cmd_args = commandArgs(); for (arg in cmd_args) cat(" ", arg, "\n",
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 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
2005 Dec 27
1
Rails/Ajax question from a newbie (to both)
I''m trying to get a Rico LiveGrid working, and I am a bit stuck on how to accomplish this. I have a page that successfully queries a controller and updates a <div> containing a table. I have two versions of the action; one uses the render_partial to return a rendered version of that table, and the other returns an XML-RPC document, and this is where I hit a snag. The Rico LiveGrid
2006 Jan 11
1
HELP!! - ActiveRecord derivates in AWS :expects method
Hi, I have a strange problem while using WebService API which expects an ActiveRecord derivate. This is the code of the API ... ------ class HarvesterApi < ActionWebService::API::Base api_method :send_measurand, :expects => [{:measurand => Measurand}, {:eaiSystemName => :string}] end ------ ... and this of my Model ------ class Measurand < ActiveRecord::Base
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
Hello, I''m using Jamis Buck''s recipe to do integration tests on an application, but I got a nil.recycle! error while doing a webservice call. This is the situation. def test_uploading_data invoke :upload, data invoke :upload, even_more_data real_user_session = new_session_as @real_user real_user_session.press_magic_button_to_enable_more_uploads invoke :upload,
2006 May 18
2
rails and .net webservices
Hello. I am novice in ruby. How can i use .net webservice method from ruby. Thanks. -- Posted via http://www.ruby-forum.com/.