The other day someone asked if anyone knew of an automated way to generate Simple Method Description (SMD) files from PHP5 classes for use with Dojo’s implementation of JSON-RPC, as detailed on this page. The answer appeared to be ‘no’ but it seemed to me like a pretty simple task. Now I know little about RPC and nothing whatsoever about JSON-RPC but using the example on the previously-linked page as a guide, I had something up and running pretty quickly. You can find the resulting (PHP5) file here.
Disclaimer: as noted above, I know little about RPC. I haven’t tested the output at all but I’m told it works. I don’t know if the output complies with any standards, I just used the example from the Dojo manual.