Use. NET to develop servers for a mobile phone software (PHP should be used). What is the interface?
Source: Internet
Author: User
Isn't it because the client accesses a webpage on our server, and I return a JSON string or Stream? I don't know much about college graduation. could you please help me or recommend some books? Isn't it because the client accesses a webpage on our server, and I return a JSON string or Stream? I don't know much about college graduation. could you please help me or recommend some books? Reply content: We recommend that you use HttpHandler, that is, ashx, to learn about the HTTP protocol by the way and learn about HttpRequest and HttpResponse. it will be helpful in the future, I don't really want to teach this in my undergraduate course. The interface that the manager tells you is just a way to exchange data between different systems in a broad sense. As long as you make an appointment with your colleagues on the mobile phone software or webpage. Or they all follow a certain company agreement.
What is most common is that a web page (HTTP protocol) returns JSON or XML data. Web Service also returns XML data through HTTP, but its XML data format is standard. However, there are a lot of specific development methods. many of them mentioned above, such as WebAPI and WCF, can easily return JSON based on HTTP URLs, even aspx can output JSON directly. HttpListener Class (System. net)
An HttpListener Server for Handling ajax post Requests
Https://github.com/YiyangLi/MatchMe/blob/master/MatchMe.Server/ActionProcessor.cs WebApi you can do the simplest thing: use WebService or ashx, directly enter the URL and parameters, and then return the text in json format. This will reduce the learning cost and speed, of course, the controllability is too low.
Or
Http://ASP.NET MVC WEB API
I don't recommend reading books from the basics. I like to recommend them. *** from getting started to proficient
Http://ASP.NET MVC 4 framework decryption
This is quite good ~ (I don't have an electronic copy of this book, but only an entity book, but an electronic copy of another one. I think these are similar)
The books on WCF seem to be more profound (that is, they don't quite talk about such examples. they all talk about the various awesome features of WCF)
You can directly return the JSON format from Google WCF
I don't know what I'm talking about in my undergraduate course. I used to learn the biological TAT.
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