Hi,<br><br>As some of you may know I am working on a JSON-RPC <-> AMP bridge to consume AMP services from browsers. WIP: <a href="http://lvh.github.com/amphibian/">http://lvh.github.com/amphibian/</a><br><br>I've hit a failing integration test. I know what the issue is -- I don't know how to resolve it.<br>
<br>I attempted to write the proxy without any knowledge of the remote commands. It assumes that the JSON provided satisfies the remote signature. If it doesn't -- that's okay, we'll get a failure back from the AMP server. So, I use callRemoteString and manually serialize by typechecking. Although that works for sending, the result I get back from callRemoteString is also in wire format. Because I don't know the signature, I have no idea if the sender meant 4, "4", u"4"...<br>
<br>On IRC:<br>dreid pointed out that I really shouldn't need a language-specific implementation of a class for this to work<br>teratorn pointed out that there is a JSON schema ticket for AMP. Perhaps there should also be a "DiscoverSchema" command?<br clear="all">
<br>Alternatively I could just cop out and require commands to be importable. Would make the code simpler but the entire design would become significantly more coupled.<br><br>-- <br>cheers<div>lvh</div><br>