Webservice problem?????

Hi All,       I am creating one web service in ror.It's working fine but now i wanna make a method in webservice in which i want to pass hash as parameter.

But i don't have any idea how to do this.

like api_method :get_value,:expects => [hash],:returns => [:string]

but i don't know how to pass means syntax to pass hash as parameter.Please help me out.

Thanks Varun

Hi All,      I am creating one web service in ror.It's working fine but now i wanna make a method in webservice in which i want to pass hash as parameter.

But i don't have any idea how to do this.

like api_method :get_value,:expects => [hash],:returns => [:string]

AFAIK, you can't have an arbitrary hash. Have a look at
ActionWebService::Struct

Fred