With statement like this
:returns => [ [[:string]] ]
you define that your methods returns an array or arrays of arrays of
strings, but in the method implementation you return an array of arrays of
strings. :)
Change it to
:returns => [[:string]]
On 7/13/06, Bob Yann <yannman@gmail.com> wrote:>
> I have the following:
>
> File: subscription_api.rb
>
> class SubscriptionApi < ActionWebService::API::Base
>
> api_method :newTest, :returns => [ [[:string]] ]
>
> end
>
> File: subscription_controller.rb
>
> class SubscriptionController < ApplicationController
>
> wsdl_service_name ''Subscription''
>
> web_service_scaffold :invoke
>
> def newTest()
> return [
[''a'',''a''],[''b'',''b''],[''c'',''c'']]
> end
>
> end
>
> When I run the scaffold generated code I get back my string array. When
> I try to call this from .NET it sees it as a "string[][]" so I
declare:
>
> string[][] i = sserv.NewTest();
>
> ..but this bombs each time.
>
> Any idea what I''m missing?
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Kent
---
http://www.datanoise.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060714/fe2b4922/attachment.html