Click here to Skip to main content
15,908,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi,

I want to use json protocol to communicate with WCF web service . the WCF is a SOAP based web service . my question is :
is there any way to communicate with it using JSON? if not , should I have a WCF service based on JSON in order to send request and receive in JSON? or is there any web service allows many communication protocols?

many thanks in advance
Posted
Updated 7-Feb-12 2:39am
v2
Comments
Sergey Alexandrovich Kryukov 7-Feb-12 21:53pm    
"the WCF is a SOAP based web service" -- who told you so? WCF is not a Web service (it can be used alternatively to Web services, as Microsoft promotes), and not a SOAP service.
--SA

1 solution

You can't make the web service use JSON if it does not do so already. Don't make things hard for yourself, just use what the web service expects. If you control the web service, you can change it to use JSON, I would think. I write web services inside MVC, not using WCF, that send and recieve JSON.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900