Pushing Forward

The testbench version of the service launcher has streamlined service development quite well. I’ve been able to get a basic randomizer up in about a half hour, including finding and fixing a bug in the ServiceContract module. The RandomizerService has three services: GetRandomFloats, GetRandomInts and Shuffle. The first two take an optional “num” argument to tell the service how many random elements it needs to generate. The default is 1. XML payloads with and without that parameter work properly. Shuffle takes an array of strings and shuffles them. All three work like a charm on the testbench. I just need to build the Javascript bindings and the HTML to test them in a full Ajax environment.

Hmmm… Given that each service has a service contract, an API spec in essence, I wonder if the JS bindings could be generated from the Ruby class. And the HTML for that matter…

Comments are closed.