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 D.

Iplan Networks
[email protected]
www.iplan.com.ar
5031-6303

Datos Personales
[email protected]
www.rorra.com.ar
15-5695-6027

You can’t return several values like this. Use ActionWebService::Struct
instead.

On 8/14/06, Rodrigo D. [email protected] wrote:

Iplan Networks


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Kent

http://www.datanoise.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs