similar to: ActionWebService and Key/Value Pairs

Displaying 20 results from an estimated 30000 matches similar to: "ActionWebService and Key/Value Pairs"

2007 Jun 06
0
ActionWebService API ignoring multiple return values?
I''m using ActionWebService and defining the following API method: api_method(:validate, :expects => [{:id => :int}, {:value => :string}], :returns => [{:valid => :boolean}, {:error_message => :string}]) if I implement this method as follows: def validate(id, value) return true, ''no error'' end I get the following error
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
2006 Apr 07
2
ActionWebService and namespaces
Hi all, I''ve tried to search the mailing list, web, etc. and haven''t found anything that seems to answer my question. I have a WSDL for a web service written in Java, and I''m trying to consume it in ruby using ActionWebService. I''ve created my API and some struct classes. I''ve found the :namespace option to ActionWebService::Client::Soap.new, but
2006 Jan 27
0
Getting a basic web service up and running with ActionWebService
So I have created a bunch of code and had it wrappered nicely as a web service using the standard soap.rpc stuff that packs with Ruby, but I needed to be able to generate a WSDL file to go with it and from what I can tell the easiest way to do that is to switch to ActionWebService with Rails. I''ve read through the AWS book which is fine but I don''t quite know enough about how
2006 Jun 06
1
Returning related models with ActionWebService
Hi, I have an ActionWebService set up and I am wondering if it is possible to return related models through its intrinsic support for ActiveRecord. For instance, suppose I have an Author model that has_many Books. I would like to return a particular author and all of their books in one SOAP message. For now, I''ve been deconstructing the ActiveRecord Model and stuffing it all into
2006 Apr 10
1
ActionWebService PDF...
Hello all - I''ve been lurking around the forums for awhile now and just wanted to say that everyone here does a great job of helping each other out...I think it goes a long way in helping even more people adopt Ruby (and Rails) I just wanted to let everyone know that I''m working on an online booklet (PDF only) for O''Reilly that covers "Web Services with Ruby on
2007 Jun 19
4
ActionWebService for many APIs in rails?
Hi, We''ve a pretty large rails application and we are currently deciding moving a part of the application front-end to a desktop GUI. For communication between application and GUI we decided to use an API. So basically what I need is a way to have our models functionality accessible by the GUI. The basic idea: Rails app provides API for models <-> HTTPS Connection <-> GUI
2006 Jan 06
0
Rails ActionWebService and gSOAP interoperability problem
Hi! I''ve successfully created a Rails web service. I can connect to it with an XML-RPC client, without any problems at all. However, when I try to use a gSOAP application to connect to the web service, it doesn''t work. The back trace that I get is at the end of this message. From the back trace, it appears that the SOAP request is not being recognized as a SOAP
2006 Jan 07
0
gSOAP and ActionWebService interop problems
Hi! I''ve successfully created a Rails web service. I can connect to it with an XML-RPC client, without any problems at all. However, when I try to use a gSOAP application to connect to the web service, it doesn''t work. The back trace that I get is at the end of this message. From the back trace, it appears that the SOAP request is not being recognized as a SOAP request, and
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
2005 Mar 08
2
ActionWebService SOAP Faults aren''t schema valid
I''m working with an ActionWebService client talking to an ActionWebService server through one of DataPower''s XS40 XML Security Gateways. One of the intrinsic functions of this gateway is automatic SOAP schema validation. When testing some failure cases, I noticed that SOAP Faults returned by ActionWebService aren''t schema valid to the SOAP 1.1 schema, specifically:
2005 Feb 24
8
web services with ActionWebService
<noobalert> Uh, yeah. So my noob self is showing through again. I''m trying to write a simple hello-world type web service with the ActionWebService thingy. I didn''t get very far. I''ve only done web services stuff in .NET, so I''m not exactly used to this sort of thing. Anyhow, I have a file, person_api.rb in my app/apis folder. I want to take a single
2006 Apr 26
0
Re: gSOAP and ActionWebService interop problems
I am experiencing a similar problem, not with gSOAP, but with Apache''s SOAP library. Just like Guido, XML-RPC works perfectly, but the SOAP request processing fails during protocol discovery. Rail''s SOAP client also works perfectly, so I''m fairly certain the error is not in my code. I am new to both ActionWebService and the Ruby XMLRPC module, so I''m
2009 Feb 26
1
Problem w/ActionWebService and Inheritance in Service Params
I have a service method that takes a PaymentMethod which can either be a CreditCard or a PayPal account. When I request the service and pass one or the other it always comes over as a PaymentMethod; the service doesn''t seem to know that the parameter is really a CreditCard or PayPal. Here''s some sample code that illustrates what I''m talking about more concretely:
2006 Apr 06
2
Directory for ActionWebService classes?
Hi all, If ApplicationController subclasses live in app/controllers, and ActionWebService::API::Base subclasses live in app/apis, do subclasses of ActionWebService::Base live in app/services? This may be a "duh" question, but I couldn''t find an explicit mention of it anywhere. Thanks, Dan
2008 Nov 24
2
Actionwebservice as a SOAP client to .NET services.
I have read the (scant) documentation on the datanoise actionwebservice gems and can''t figure out how you are supposed to structure the SOAP client. Has anybody ever used actionwebservice as a client? If so could somebody please put a sample someplace? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2006 Jan 22
0
ActionWebService::Struct --> minOccurs?
Howdy, In extending ActionWebService::Struct and naming members, is it possible to indicate them as optional (yielding minOccurs="0" in the wsdl)? For example, suppose I want to create a request object that can either work via a number id or a string name (think of it as a union). class Identifier < ActionWebService::Struct member :id, :int member :name, :string end
2006 Jan 31
0
How to use nested arrays in ActionWebService?
Hi list. I am writing a data structure definition for my web service API that has - besides others - a nested array of integers: I want to have an array that contains arrays which themselves contain two integer values. An example for this is: [ [1, 2], [2, 400] ] These values represent a distribution and in this exapmmle this means that the event "hit 1 time" occured two
2007 Dec 08
0
ActionWebService in Rails 2.0
Hello, I tried upgrading my application from 1.2.6 to 2.0.1. One thing that doesn''t work is ActionWebService. As stated in this blog: http://weblog.rubyonrails.com/2007/12/7/rails-2-0-it-s-done I did a gem install actionwebservice But I''m not able to load it, because the latest gem version is 1.2.6 and when requiring, it raises: /usr/local/lib/site_ruby/1.8/rubygems.rb:246:in
2007 Jan 27
0
Interchanging ActiveRecord and ActionWebService... Help with my problem and suggestions for Best Practices.
Okay, I''m try to support two situations "easily". I need to be able to use either ActiveRecord or ActionWebService. So I''m trying to handle this "switch" as transparently as possible. I''m totally open to suggestions.. Thanks, Jason I''m getting the following error: NoMethodError in Offer renewalController#payment_made undefined method