In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "the principle and usage of interface webservice". In daily operation, I believe many people have doubts about the principle and usage of interface webservice. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the principle and usage of interface webservice". Next, please follow the editor to study!
Webservice what is webservice?Web Service also known as XML WebService WebService is a lightweight independent communication technology that can receive requests from other systems on Internet or Intranet. Yes: through the software services provided by SOAP on Web, using WSDL files to explain, and registering through UDDI. What is http? HTTP is a protocol (communication protocol) that can access network resources such as HTML. It is the basis for data exchange over Web and is a client-server protocol, that is, requests are usually initiated by recipients such as browsers. A complete Web document is usually made up of different subdocuments, such as text, layout description, pictures, videos, scripts, etc. The advantages of webservice 1. The methods and required parameters implemented in the interface are clear at a glance. Don't worry about case 3. Don't worry about Chinese urlencode 4. There is no need to declare authentication (account number, password) parameter 5. Passing parameters can be arrays, objects, etc. 6. Webservice is to use the soap protocol to get what you want, compared to httpservice to deal with some more complex data types, one of the most basic purposes of 7.Webservice is to provide the ability to work together in different applications on different platforms. The advantage of http over tcp HTTP is the application layer protocol, and TCP is the transport layer protocol (under the application layer), so it is not appropriate to put it together. Should be compared to the "standard HTTP protocol" or "custom protocol (based on TCP Socket)" TCP long links are always open. If it is TCP: the server side is not easy to expand, testing the access ability of a single server. Server clusters are not easy to set up. On the client side, the thread that handles the socket connection is responsible for doing all kinds of things. The logic of all the network protocols is concentrated here, and the structure is not very good. Http, on the other hand, has a completely different structure. The difference is that the development costs are different. Http has a large number of off-the-shelf architecture, servers, databases, if something goes wrong, it will not crash completely, and the debugging cost is small. Tcp must customize the protocol and then handle it; implement the server and listen on the port; create a series of debugging methods when you encounter problems. It costs an order of magnitude to build your own wheels. Recently, I happen to be using the http protocol, which was done by a person before I took over, and there is no way to rewrite the code. Socket-based custom protocol is not suitable for fast iteration of mobile development, unless it is some lower-level requirements. It is estimated that people like Wechat may customize the protocol, otherwise the bandwidth load is too high. But I don't know the details. So where you can use http, don't use tcp. But some things must use tcp, such as online games, that is no way to do things. A very important advantage of the HTTP protocol is that it traverses the firewall. If there is a security device between the client and the server, the only port that may be open is TCP:80. This is especially true for mobile developers. You don't want users to complain that they can't access your server all day. At this point, the study of "the principle and usage of interface webservice" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.