guzzle/guzzle — Issue #17: Code generation based on service descriptions
Author: mtdowling
Created: 2012-02-02 01:25:41+00:00
State: open
Labels: Feature

Investigate the possibility of a command line tool that would read service descriptions and generate snippets of code that could be added to a client. For example:

```xml

Get a comment by ID

```

Would be translated to:

```php
getCommand('get_comment', array(
'id' => $id
));

return $this->getConfig('client.sync') ? $this->execute($command) : $command;
}
```

The above code could then be added to a client class to make it easier to use the web service. Would be nice to be able to specify whether command parameters are expanded into separate arguments or if an array should be used as an argument for commands with many parameters.