View Rahoul Baruah's profile on LinkedIn Basecamp project management and collaboration

The blog of Rahoul Baruah from 3hv Ltd

What's going on?

My name is Rahoul Baruah (aka Baz) and I'm a software developer in Leeds (England).

This is a log of things I've discovered while writing software in Ruby on Rails. In other words, geek stuff.

However, I've decided to put this blog on ice - I would ask you to check out my business blog here (or subscribe here).

10 July, 2006

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:

eXTReMe Tracker