.NET SOAP Web服务返回JSON [英] .NET SOAP Web Service return JSON

查看:373
本文介绍了.NET SOAP Web服务返回JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要prepare一个的.Net SOAP网络返回JSON格式服务,我们在iPad上与放大器使用这些服务; Android系统。

I need to prepare a .Net SOAP Web Service which returns JSON format, we have to use those service in iPad & Android.

我搜索了很多,但只发现WCF RESTful服务返回JSON和ASMX SOAP服务返回的XML。

I searched a lot but found only WCF Restful service that return JSON and ASMX SOAP service that return XML.

请帮我prepare返回JSON数据无论是WCF或ASMX(WCF推荐)。

Please help me to prepare a .Net SOAP web service which returns JSON data either WCF or ASMX (WCF recommended).

如果可能的也请让我知道什么是标准格式(WCF REST返回JSON,WCF SOAP返回JSON,SOAP ASMX返回XML等)使用的.NET Web服务与iPad / iPhone和放大器; Android系统。

If possible please also let me know what is the standard format (WCF REST return JSON, WCF SOAP return JSON, ASMX SOAP return XML, etc.) to use .NET web-services with iPad/iPhone & Android.

推荐答案

使用WCF是微不足道返回JSON和IOS开发者会爱你,如果你避免SOAP。既然你没有指定版本的.NET你需要,我会为你称为Web API最新,最大的特点。看到这里的教程
<一href=\"http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api\" rel=\"nofollow\">http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

Using WCF it is trivial to return JSON, and IOS developers will love you if you avoid SOAP. Since you didn't specify a version of .NET you require, I will point you to the latest and greatest feature called Web API. See the tutorial here http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

这篇关于.NET SOAP Web服务返回JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆