简体   繁体   中英

How to create REST/SOAP wcf web service from asp.net mvc2 project and consume in android

I have a MVC2 ASP.Net project. I want to make a web service which internally calls the controller's action (since logic are coded in controller's action). And finally I will consume the web service from android sdk. The web servc

I would probably use a JSON result from MVC instead of the default action result, and then anything (including Android devices) doing a GET or POST to the endpoint (controller action in MVC) depending on how you code it can consume it.

I wouldn't bother doing a WCF service for this endpoint unless you need some other functionality there (admittedly some of my read-only WCF endpoints are exposed using SOAP, XML, and JSON just by expanding the configuration).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM