Using JSON-RPC Web Services in .NET

A business partner proposed creating a web services library with JSON-RPC rather than SOAP. (note that they are not necessarily built in .NET, but I)

I am a potential consumer of this data.

I used JSON for Ajax client calls in the past, but this web services library will be used mainly for server-side calls and synchronization of large amounts of data.

I do not have much experience with JSON-RPC.

Questions:

  • Is it easy to create a JSON-RPC user in .NET?
  • Are JSON-RPC web services self-documenting and discovery like SOAP WSDL?
  • Can I easily add a web link in Visual Studio for the JSON-RPC web service?

thanks

+6
json soap web-services json-rpc wcf
source share
5 answers

Can I easily create a JSON-RPC consumer in .NET?

Yes. JSON-RPC services are easy to use if you have a reliable parser or JSON formatter. Jayrock provides a simple client-side implementation of JsonRpcClicnet that you can use to create a consumer. There is also a small demo .

Are JSON-RPC web services self-documenting and discovery like SOAP WSDL?

No, there is nothing standardized, but there are ideas that float around, for example, Service Description of Service Description .

Is it possible to easily add a web link in Visual Studio for a JSON-RPC website service?

This may work if the server-side implementation provides a description of the WSDL-based JSON-RPC service, but none of them are known to have reported this to date.

+4
source share

Mark Jayrock .

Jayrock is the humble and open source (LGPL) implementation of JSON and JSON-RPC for the Microsoft.NET Framework, including ASP.NET. What can you do with Jeyrok? In a nutshell, Jayrock allows clients, typically JavaScript on web pages, to be able to access server methods using JSON as a wire format and JSON-RPC as a procedure call protocol. These methods can be called synchronously or asynchronously.

+1
source share

Is it easy to create a JSON-RPC user in .NET?

It should not be difficult if you know what you are doing.

Are JSON-RPC web services self-documenting and open-source, such as SOAP WSDL?

Detect yes by documenting as much as you can get function names and parameter lists. (not quite sure what you are asking for as far as the documentation goes).

Is it easy to add a web link in Visual Studio to a JSON-RPC web service?

I don’t think so, no. (Although, I don’t know, this is possible. My experience with JSON-RPC is mainly in PHP / JS)

Relevant links:

0
source share

Perhaps you could take a look at json-wsp, which is very similar to json-rpc, but with a specification specification. It is implemented as an interface in Ladon for python. http://pypi.python.org/pypi/ladon

0
source share

I have an example of Json-Rpc 2.0 clients for .net and windows phone 7 in Json-RPC.NET sources.

Check them out: .NET Client and WP7 Client

0
source share

All Articles