1. What is a webservice?
WebService is an SOA (Service Oriented Programming) architecture, which is not dependent on the language or platform, and can realize the mutual call between different languages and the interaction between network applications based on the Http protocol through the Internet. WebService is based on a standard that implements calls between different languages, and webservices need to comply with WSDL (Web Service Definition Language)/SOAP (Simple Request Protocol) specifications. WebService=WSDL+SOAP+UDDI (registration of webservice) Soap is composed of a part of Soap and 0 or more attachments, generally only part, and there are Envelope and Body in part. Web services are one that provides standard protocols and interfaces that allow different programs to be integratedSOA architecture。
Advantages of Web Services:
- Can allow heterogeneous programs to access each other (cross-platform)
- Loose coupling
- Based on standard protocols (common language, allowing access to other programs)
Fundamentals of Web Services
- The Service Provider uses WSDL to describe the service
- The Service Provider uses UDDI to publish the description of the service to the UDDI Register server
- The Service Requestor queries and fetches the WSDL file on the UDDI server