Another ActionWebService annoyance
It would appear that you cannot have a void method in ActionWebService. If your API looks like this:
api_method :my_procedure, :expects => [{:something => :int}], :returns => []
you will get nil object errors when looking at the WSDL or invocation scaffold.
Instead, you must do this:
api_method :my_procedure, :expects => [{:something => :int}], :returns => [:int]
and return a dummy value at the end of your implementation.
No comments:
Post a Comment