WebService is the encapsulation and replenishment of a SOAP protocol based on the HTTP protocol, and if you consider a public-stable interface, you can try to think about it.
As to whether the socket and HTTP, webservices are put together to compare and consider
Mainly depends on the angle of your concern, and this angle can be technical level, can also be the user needs level
1 Data transmission mode
Definition of 1.1 socket transmission and its characteristics
The so-called socket is also known as the "socket", the server and the client to achieve physical connectivity, and data transmission, mainly UDP and TCP two protocols. The socket is in the transport layer of the network protocol.
UDP protocol: Broadcast data transmission without verification
TCP protocols: Transmission Control Protocol, a connection-oriented protocol that provides a reliable Full-duplex byte stream for user processes.
The characteristics of the socket transmission:
Advantages
1 transfer data to byte level, transmission data can be customized, small amount of data (for mobile applications: low cost)
2) Transmission data time is short, the performance is high
3 Suitable for real time interaction between client and server side
4) can be encrypted, data security is strong
Disadvantages:
1 The data to be transferred to the application-level data analysis.
2 The development of the developer level requires high
3 in relation to HTTP protocol transmission, increase the amount of development
1.2 Definition and characteristics of HTTP protocol transmission
HTTP protocol and HTTP protocol based SOAP protocol (Web service) are the most common methods of HTTP post and get requests, Web services.
Transmission characteristics based on HTTP protocol
Advantages:
1) based on the application-level interface easy to use
2 The level of programmer development is not high, fault tolerance is strong
Disadvantages:
1 slow transmission speed, large packet (HTTP protocol contains auxiliary application information)
2 when the actual interaction, the server performance pressure.
3) Poor data transmission security
2 application range of each data transmission mode
2.1 Socket Transmission Scope of application
Based on the characteristics of socket transmission: Socket transmission is suitable for transmission speed, security, real-time interaction, cost, such as the application of high requirements, such as network games, mobile applications, banking internal interaction, etc.
2.2 Range of applications based on HTTP protocol transmission
Based on HTTP protocol transmission characteristics: based on HTTP protocol transmission mode is suitable for transmission speed, security
Requirements are not very high and require rapid development of applications. such as the company OA system, Internet services, etc.
I think that the socket and HTTP, webservices and so on together is not very appropriate, the so-called HTTP and so is the socket for a packaging, the latter more at the bottom. But compare the similarities and differences between HTTP and WebServices.