How to use JSON web services from Windows client

Is it possible to use WCF web service with JSON enabled standard proxy client (i.e. not JavaScript)?

Basically I want to minimize the size of the payload between two web services.

-1


source to share


1 answer


Yes, it does as long as the client-side service interface definition is configured correctly (ie, the RequestFormat / ResponseFormat properties of the WebGet / WebInvoke attribute for the operation contracts are set to Json. Also remember that you will need to use the WebHttp or WebScriptEnabled behaviors on your client.



Note that JSon is not necessarily the most efficient given the current WCF implementation; there are certain trade-offs that you will make. There's a good overview of it on in this article .

-1


source







All Articles