且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在网络服务中使用json?

更新时间:2023-12-04 20:05:04

您不能使Web服务使用JSON(如果尚未使用JSON的话).不要为自己烦恼,只需使用Web服务期望的东西即可.我想,如果您控制Web服务,则可以将其更改为使用JSON.我在不使用WCF的MVC内编写了发送和接收JSON的Web服务.
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.