Hi - is there an easy way to submit an object with its associations as
an :expects parameter to a AWS webservice?
Is it possible to use an ActionWebService::Struct in an :expects? You
can
certainly use it in a :returns. So something like:
class AwsTree < ActionWebService::Struct
member :id, :int
member :name, :string
end
class TreeApi < ActionWebService::API::Base
api_method :get_tree_by_struct,
:expects => [[AwsTree]],
:returns => [{:treeid => :int}]
end
class Tree < ActionWebService::Base
web_service_api TreeApi
end
HTH,
Andrew
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.