2011-11-09, 09:42
DryerLintPurple Wrote:I'd like to be able to control XBMC from Dojo, and was looking for a Service Mapping Description (SMD) file to use with it. Without trying to write the whole thing by hand, about the only thing I could think of was trying to take the output of JSONRPC.Introspect and regexp into the necessary format. I'm pretty new to this stuff, though, so any help would be appreciated.
Montellese, I saw an old post of yours trying to come up with the same thing, did you ever get anywhere with that?
Well I first did the whole Introspect stuff based on SMD but then we discovered that the "transport" property of the SMD is very limited (to HTTP and TCP) but we provide JSON-RPC over HTTP, TCP, Bluetooth and Python and maybe there will be other transports in the future. As we didn't wanna use a specification and not follow it I had to drop the SMD approach and use JSON schema in combination with JSON Service Description instead.
But I'm sure it would be possible to write a script that translates the output of our JSONRPC.Introspect into SMD.