A business partner has suggested building a web services library with JSON-RPC rather that SOAP. (note they are not building in .NET necessarily, but I am)
I am a potential consumer of this data.
I’ve used JSON for client-based Ajax calls in the past, but this web services library will be used primarily for server-side calls and syncing large amounts of data.
I don’t have much experience with JSON-RPC.
Questions:
- Can I easily build a JSON-RPC
consumer in .NET? - Are JSON-RPC web services self
documenting and discoverable, like a
SOAP WSDL? - Can I easily add a Web Reference in
Visual Studio to a JSON-RPC web service?
Thanks
Yes. JSON-RPC services are simple to consume as long as you have a robust JSON parser or formatter. Jayrock provides a simple client implementation
JsonRpcClicnetthat you can use to build a consumer. There is also a small demo sample included.No, there is nothing standardized but there are ideas being floated around like Service Mapping Description Proposal.
This can work if the server-side implementation provides a WSDL-based description of the JSON-RPC service but none are known to provide this to date.