What is the interface for using. NET to develop a server for a mobile software (which should be PHP)?

Source: Internet
Author: User
is not the client accessing one of our server's Web pages, I returned to a JSON string or a stream or something? College graduates do not know much, ask for help, or recommend what book to see?

Reply content:

Recommended with HttpHandler, that is, ashx, you can learn the HTTP protocol, and from the most basic HttpRequest and HttpResponse start to understand, it is very helpful in the future I would like to say, undergraduate actually do not teach these bar. The manager tells you that the interface is simply a means of exchanging data between different systems in a generalized way. As long as you and the front of the mobile phone software/web colleagues agreed on the good. Or they follow a convention within the company.
The most common is what you say a Web page (HTTP protocol) returns JSON data or XML data. Web service is also the HTTP protocol that returns XML data, except that its XML data format is standard. But the implementation to the specific development method is many, upstairs said a lot, such as WEBAPI,WCF and so on, can be conveniently based on the HTTP URL to return JSON, and even direct ASPX output JSON is also possible HttpListener Class (System.Net)
An HttpListener Server for handling AJAX POST requests
https:// Github.com/yiyangli/mat Chme/blob/master/matchme.server/actionprocessor.cs Webapi you can do the simplest, with WebService or ashx, directly enter the URL and parameters, and then return to the JSON format text is good, so the learning cost is low, fast, of course, this controllability is too low, generally not recommended WCF
Or
/ http ASP MVC WEB API

Push book Ah, I do not recommend starting from the foundation, I like to recommend * * * from the beginner to proficient

/ http ASP MVC 4 Framework Decryption
This is very good ~ (I do not have this electronic version, only the physical book, but there is another electronic version, I think these are similar)

WCF's books seem to speak more deeply (and that's not quite the case, it's all about the great features of WCF)
You can return the JSON format directly to Google WCF

Undergraduate I do not know, I have the original student's tat
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.