|
|
||||||||||||||||||||
| Home > SOA News > Demystifying Web services: How they really work | |
| SOA News: |
|
||
The Web Services AdvisorDemystifying Web services: How they really workMore than any recent technology, Web services are surrounded by hype, mystery, and a bit of mumbo jumbo thrown in for good measure. Does anyone really know what they are or how they work? To give you a leg up, in this column I'll demystify Web services for you and explain how Web services protocols do their work. Let's start with the basics. Web services are modular software components wrapped inside a specific set of Internet communications protocols and that can be run over the Internet. These components can communicate with other components automatically without human intervention. They can be used on an Intranet inside a firewall, or out across the greater Internet. A Web service itself is a software module delivered over the Internet or an intranet via XML (eXtensible Markup Language) messaging. The software module can be built in a variety of ways, most notably, but not exclusively, using Java. At the heart of the Web services architecture is the need for program-to-program communications. And in order for that communication to take place, the Web service itself first needs to be described in detail so that other programs can understand what it is and know how to connect to it. That is what XML does - it describes the service in a manner that can be understood and used. This XML depiction is called a service description, and includes all the details necessary for the Web service to be accessed, including its location, transport protocols and message formats it uses.
Understanding the key roles in the Web services architecture
The publish operation makes information about the service available so that it can be found and used - in other words, it makes the service description publicly available. The find operation discovers the Web service - it's the way in which the computer or program searches for, and understands, what the Web service is, where it's located, and how to link to it. The bind operation allows the service to be used by the person or program requesting the service. Let's take a look at a typical scenario detailing how the service provider, service registry and service requestor work together to deliver a Web service. First the Web service is built as a software module, then a service description is created for it using XML. A service provider hosts the module. The provider also hosts the XML service description for the Web service, which includes details about the service, including its location, transport protocols and message formats it uses. The service provider publishes this service description to a service registry, a public, searchable index of service descriptions through which people can find Web services. Included is information about the Web service, such as details about the service provider/host. The service registry's role is to make available service descriptions so that Web services can be found and run. A service registry isn't absolutely required for Web services to be run - service descriptions can be found in other ways, such as from an ftp site, a Web site, a local file, or from other sources. The service requestor is the business looking to run a Web service, or an application looking to interact with a Web service. It can be a person using a Web browser, or can also be a program, or even another Web service. The service requestor searches the service registry and finds the service description for the Web service. Based on the information it finds in the service registry, it connects to the service provider hosting the Web service using a bind operation, and then runs the service.
A look at the underlying protocols
That, in a nutshell, is how Web services work. In future columns, we'll examine the architecture and each of the protocols in more detail.
About the Author
For More Information
'); // --> |
||||||||||||||
| About Us | Contact Us | For Advertisers | For Business Partners | Site Index | RSS |
|
|
|
|||||||