search for: cast_to_structured_type

Displaying 6 results from an estimated 6 matches for "cast_to_structured_type".

2006 Mar 28
11
ActionWebService date casting error
...rvice-1.0.0.4008/lib/action_web_service/casting.rb:103:in `cast_base_type'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0.4008/lib/action_web_service/casting.rb:62:in `cast'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0.4008/lib/action_web_service/casting.rb:123:in `cast_to_structured_type'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0.4008/lib/action_web_service/casting.rb:121:in `each_member'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0.4008/lib/action_web_service/support/signature_types.rb:205:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/act...
2006 Jun 07
1
Web Service: NoMethodError (missing attribute: featured) !?!?!?!?!
...y_id</methodName><params><param><value><i4>99</i4></value></param></params></methodCall> NoMethodError (missing attribute: featured): /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/casting.rb:125:in `cast_to_structured_type'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/support/signature_types.rb:206:in `each_member'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/support/signature_types.rb:205:in `each_member''...
2006 Jan 07
1
AWS, SOAP, and Exceptions
...n => e return e end end I see the following error, prior to the call to encode_reponse(): "Don''t know how to cast ActiveRecord::RecordNotFound to Calendar" c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/casting.rb:119:in `cast_to_structured_type'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/casting.rb:55:in `cast'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/casting.rb:38:in `cast_returns'' c:/ruby/lib/ruby/gems/1.8/gems/actionwebserv...
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:
2005 Dec 30
5
AWS api_method :returns not accepting ActiveRecord::Base
...ActiveRecord::Base instead of an AWS::Struct object. Whenever I try it, though, I get the craziest error: NoMethodError: You have a nil object when you didn''t expect it! The error occured while evaluating nil.new /usr/lib/.../actionwebservice/lib/action_web_service/casting.rb:105:in `cast_to_structured_type'' [...] The reason why there''s a nil object instead of a type class object is because something tried to create a StructuredType of Exception, which (strangely!) doesn''t actually work. Changing my type to any of the internals or to a class derived from AWS::Struct causes...
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