Rodrigo Dominguez
2006-Aug-14 20:05 UTC
[Rails] various returns parameters in action web service
I''m working with ActionWebService, building a SOAP Service.
I realize that I can returns various values, in example:
api_method :foo,
:expects [ { :value1 => :int },
{ :value2 => :int } ],
:returns [ { :return_value_1 => :int},
{ :return_value_2 => :string},
{ :return_value_3 => :string} ]
the question is as follows, then in the controller:
def foo
# How do I return the values for return_value_1, return_value_2
# and return_value_3 here?
end
----------------------------
Rodrigo Dominguez
?
Iplan Networks ???????????????
rdominguez@iplan.com.ar??????
www.iplan.com.ar???????????
5031-6303 ????????????????????
Datos Personales
rorra@rorra.com.ar
www.rorra.com.ar
15-5695-6027
Kent Sibilev
2006-Aug-14 23:17 UTC
[Rails] various returns parameters in action web service
You can''t return several values like this. Use ActionWebService::Struct instead. On 8/14/06, Rodrigo Dominguez <rails@rorra.com.ar> wrote:> I''m working with ActionWebService, building a SOAP Service. > > I realize that I can returns various values, in example: > > api_method :foo, > :expects [ { :value1 => :int }, > { :value2 => :int } ], > :returns [ { :return_value_1 => :int}, > { :return_value_2 => :string}, > { :return_value_3 => :string} ] > > the question is as follows, then in the controller: > > def foo > # How do I return the values for return_value_1, return_value_2 > # and return_value_3 here? > end > > ---------------------------- > Rodrigo Dominguez > > Iplan Networks > rdominguez@iplan.com.ar > www.iplan.com.ar > 5031-6303 > > Datos Personales > rorra@rorra.com.ar > www.rorra.com.ar > 15-5695-6027 > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Kent --- http://www.datanoise.com