Home > Articles > Web Services

This chapter is from the book

1.2 The Web of Services

In today's Web-centric world, it is convenient to think of entities or resources that are connected to each other through some mechanism — by means of a hyperlink in most simple form. The primary purpose of the WWW is to make it easy to share information among interested parties. The pages, together with the hyperlinks, create a web of information. Any visitor to a page can jump to another by following the hyperlinks or by explicitly providing the Uniform Resource Locator (URL) for the page of interest. This is the state of most of the World Wide Web (WWW) as we know it today. This infrastructure is what also facilitates the e-commerce applications today for companies that want to reach their customers over the Internet.

We can extend the concept of the Web to include not only pages, but more active components of the Internet — namely, the services. A web of services is similar to the web of pages in a lot of ways. For example, they will be connected to each other through some mechanism, and their users will be able to go from one service to the other using these links. However, the service web that e-Speak envisions is also very different from the web of pages. It is these differences that distinguish the web of services from the web of pages. The principle differences are in the form of service interactions. We can classify these interactions in three different categories:

  1. User-to-Service interaction

  2. Service-to-Service interaction

  3. Service Deployer-to-Service Deployer interaction

1.2.1 User-to-Service Interaction

We have been talking about the services until now without any specific definition for that word. Although we all have some notion of what a service is, a formal definition will be useful for the rest of the book. It must be noted that the definition we give below is not expected to be something that will be all-encompassing but rather a working description of the notion of service that will be used in this book.

Service: A service is an active program or a software component in a given environment that provides and manages access to a resource that is essential for the function of other entities in the environment.

Figure 1.2 depicts a service. It is important to note that the notion of resource is rather broad in this definition. A resource could be a piece of hardware, such as a hard disk, or software, such as a math library. It could also be some data in a database or some information, such as a news item. This definition is somewhat simplistic yet very powerful. It is simplistic because it tries to be as broad as possible and specifies very few specific characteristics or restrictions on qualifying entities. A service need only be a program or a library function to qualify. The key, however, is in provision and management of a resource. Provision means that it has to make the resource available to other entities, and management denotes controlling and granting the access rights. You can see that this automatically mandates interaction with other entities in its environment. Thus, a program or a software component that does not interact with other entities will not qualify as a service. An equally important aspect is controlling a resource that is desirable by other entities in the service environment. Any resource that is useful only internally to the program does not help in making that program a service.

Figure 1.2Figure 1.2 Resource access via a service.

As can be noted from this definition, a service is an active component, whereas a Web page is a static, one-time representation of some information. One can interact with a service (to access a certain resource that the service manages), and the service responds back with a response (rejecting or providing access to the resource). One could argue that a page can do something similar but, in fact, it is the Common Gateway Interface (CGI) program or the servlet behind the page that will be responding to the request. The page provides the means for communication between the user and the program or the servlet. It is the CGI program or the servlet that is acting as a service in this case.

The interactions with active components as services are richer, compared with the passive components, such as Web pages. A service can show a high level of dynamism while catering to the user. Due to this a high degree of customization, flexibility can be achieved, thus giving a better user experience. So far, we have been delivering the services through a series of Web pages. So how is this dynamism exhibited today?

Most of the initial Web content was on static Web pages. When the CGI technology was invented, it became possible to connect programs to the Web pages. These programs could be used to process user input (such as a login or an order status information request) and render a complete Web page dynamically. This dynamically generated page would contain information specific to the user request. With the advent of style sheets and Java/Active Server Pages (JSP and ASP) technologies, most of the Web pages can be expressed in terms of the overall style, with the connected program filling in the specifics.

It can be noticed that there are a lot of standards on the presentation aspect — the browsers, presentation language Hypertext Markup Language (HTML) and style sheets. However, we are missing on the standards on the actual interactions these presentation technologies are supposed to facilitate. How should access to a resource be provided? How should the user and the service agree on describing a resource and describing the usage of that resource?

In a service-centric world, the emphasis is put on answering such questions. The presentation is a final-stage consideration when it is time to deliver the resource to the user on a specific medium. In a web of services, the user is thus free to choose the appropriate medium of delivery at a specific time. This, coupled with presentation-level flexibility, can produce a highly customized user experience.

The emphasis on the description of various entities also opens up quite interesting possibilities in discovering services for a user or creating a new business partnership to enhance a service offering of a business. As long as the user and a collection of similar services agree on the terms of description, the user can, in theory, choose any service to accomplish a task. The choice could be based on a variety of criteria such as past experience, third-party rating, or even user's whim at that moment. Regardless of which service is chosen, it is possible for the users to express their tasks in a consistent, previously agreed-on manner. From a cognizant user's perspective, this means that there is now a choice about which service to choose based on certain criteria — the description of the service class. Such a user can choose any service after due diligence. On the other hand, from an non-conscious user's standpoint, it doesn't matter which service serves your request so long as you can describe your needs well and the service is capable of understanding your description and acting on it to fulfill your request. Imagine buying a car. One can do all the necessary research about car dealers, provide the description of the car, float a request for quote to all the "qualified" dealers, and choose the dealer that has the best price. On the other hand, one can also just find the nearest dealer and buy the car so long as the price sounds reasonable. Between the two scenarios, the users did not agree on the best way to choose a service, but in either case, they could reach a service that could fulfill their need. There is only one fundamental thing the users and the dealers needed to agree on — the description of a car. There is one more aspect to the user-to-service interaction —discovery. We already discussed the description for a class of services. Discovery of a service means choosing, either deliberately or accidentally, a specific service from a class of services, using a specific description. Intelligent matchmaking like this can ease the pain in finding and interacting with the right service.

To extend the idea further, imagine now a task that is so complex that no single service can do it — such as the trip-planning task we described earlier. In such a case, to accomplish the task, we will have to choose a set of right services and interact with them individually. As we will see in the next section, a service-to-service interaction mechanism can help solve this problem effectively. Such a composition of services will create a seamless experience for the user.

In the e-Speak vision of the services, the user-to-service interaction is thus characterized by:

  • Service description

  • Service discovery

  • A high degree of customized experience

  • Service composition to accomplish higher level tasks from services acting as basic building blocks

You will notice that e-Speak's vision describes a special class of services. The services from this class are highly interoperable in offering their services. Such services are called e-services.

E-service: An e-service is a service that abides by a specific framework to offer its services. The framework provides the means to describe and discover the service, audit its service offering, and integrate the e-service with other e-services to offer higher level e-services.

The industry has adopted the term web services for this class of services. This book concentrates on the service-centric computing, including both e-services and web services. As a result, both the terms web service and e-service point to this class of services for our discussion and we have used these terms interchangeably in the rest of the book except in Chapter 13.

1.2.2 Service-to-Service Interaction

A user of a service can expect a significantly different experience while interacting with it, as we saw earlier. We also mentioned that the e-services are highly interactive components and communicate with other e-services. Such interactions could be either to use the service offered by an e-service or to collaborate together to form a higher level service that can be used to add complementary or additional value. In either case, the interacting services should have an experience at least similar in nature to the service-to-user interactions we described previously. Should the interaction be richer than that?

Let's look at the service-to-service interactions more closely. By the definition, a service is an active software component. Thus, the service-to-service interaction inherently implies at least two software objects communicating with each other. Such an interaction is different from either the Web page interaction or the service-to-user interaction. Compared with a set of Web pages joined together by hyperlinks, a service-to-service interaction is very dynamic in nature. In the Web page realm, the hyperlinks (or the connections) are either purely static or (maybe) somewhat dynamic. In the service world, the connections formed are determined and bound on the fly, based on the requirements. Take the trip-planning example from the previous section. In that case, a trip-planning service can decide which airline reservation service to collaborate with dynamically, based on the user's preferences, which could include using a specific airline, lowest price, shortest travel time, or the destination itself. Note that this search can result in finding airlines or airline reservation services that the trip-planning service may not be aware of until that moment! It is this level of dynamism that differentiates a service-to-service interaction from the usual "Web page"-like interaction. E-Speak is designed to support such dynamism.

The other aspect of service-to-service interaction is the notion of dialog between the two interacting services. A service can have a dialog, a bidirectional communication, with other services. In the passive Web page world the absence of such a dialog is near total. A Web page can redirect you to another Web page, either automatically or via a hyperlink without giving any prior indication to the other page. Also very rarely is there any communication between two pages.

NOTE

There are a few examples of unidirectional communications between Web pages. A Web page, while redirecting the user to the other Web page, can communicate information regarding itself to the Web server or the Web page being loaded. The server or the page can use this information to present the page information differently or to maintain a log. Various business models have been built around such a capability. One such business model is revenue sharing. When a Web portal redirects the user (automatically or by conscious user choice) to another company's Web page selling a product, the Web portal is compensated monetarily for the redirection. A product company may have such an arrangement with several portals, and vice versa. In such a case, for each redirection, a context for redirecting the page must be communicated to the product company's Web server or Web page. This context is then used to determine the revenue-sharing amount for each portal and the participating product companies.

The possibility of bidirectional communication can help in creating a more customized and richer set of interactions. As we will see later in this book, such interactions make it possible to introspect a service to understand its description, information-sharing format, and workflow sequences. Based on this knowledge, one can qualify (or disqualify) a service or amend its own workflow to accommodate (or abide by) the other service's workflow. Again, this is an aspect of the dynamic behavior that is absent in the web of pages. It should be noted that such a level of dynamism is also not typically exhibited in the service-to-user interaction. A user usually has a specific behavioral pattern, and this pattern is difficult to change to accommodate a found service. In fact, in most cases, systems are designed to accommodate this behavior pattern. In the e-Speak world, as well, the same principle follows. It is summarized in the e-Speak motto: To make the Web work for you and not make you work on the Web.

1.2.3 Service Deployer-to-Service Deployer Interaction

A rich interaction pattern between a service and its users or other services can create an environment that can also influence the interaction between the service deployers. In the current state of the Web, the relationship between various service deployers is rather static — at least in the electronic world. Service deployers enter into an alliance to connect each other's services. The agreement to form this alliance happens in the paper world or from the electronic world's perspective —offline.

After an alliance is formed, a team of engineers gets to work to build the electronic bridges between the two companies forming the alliance. The electronic bridges built are usually in the form of a Virtual Private Network (VPN) or a collection of Web pages secured through some mechanism, such as digital certificates from either side. Whatever the form of these bridges is, veteran programmers can tell you that it takes some significant effort to build them, and the maintenance of them is even more cumbersome. In the meantime, the executives at each company are busy forming new alliances to expand the business or severing the ones that do not live up to the expectations. This activity between the business managers and technologists in a company creates a constant state of flux in which the electronic bridges are constantly being built or torn down — each of which is a labor-intensive endeavor.

The problem lies in the fact that the semi-dynamic technology-level solutions cannot live up to the expectations of hyper-dynamic world of business alliances. The efforts required to build or tear down electronic linkages between two or more companies comes in the way of rapidly forming lucrative alliances or pulling down un-profitable ones. Currently, the technology folks are trying hard to keep up with the business people on this issue.

If, however, it is possible, to find dynamically a collection of services suitable for the task you want to accomplish on the fly, as we discussed earlier, it should also be possible to form the alliances (or break them, as the case may be) at the same pace. The e-Speak infrastructure is designed to make this possible. Whereas e-Speak provides the description of a service to find it, it has the terms of use and other constructs to communicate the modalities of the service being offered. These e-Speak constructs, although termed a contract, are somewhat rudimentary and are not quite as powerful as a contract in the real world. However, it is possible to devise such instruments of business operation using them. It must also be noted that the legal system around contract formation in the digital world is not fully developed as yet, and without that, the effectiveness of even a sophisticated implementation will also be limited. However, the e-Speak implementation is a step in the right direction, and as we mentioned earlier, it is possible to create a more advanced mechanism for contract formation using it.

Equipped with the dynamic discovery and contract formation on the fly, one can imagine a very different world. In such an environment, it would be possible to offer a service and reach customers you didn't even know existed. Also, from a customer's point of view, it would be possible to describe what they want and find a set of services that fulfill it. The discovered and eventually selected services will vary every time, based on the parameters the customer provides, such as location, rating, and preferences. For the chosen set of services, one could retrieve the terms of use and other quality-of-service aspects and make a decision on which service to use. In fact, instead of going through the whole process, we could delegate that task to another service we trust!

As you can see from the description above, the service-oriented world like this means a large variety of service providers. Each of the service providers by themselves are providing only a small piece of functionality — a functionality that is their core competency. However, when they are together, connected through the mechanisms described by e-Speak, they can create a very powerful service-providing environment. E-Speak calls such an environment an ecosystem.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020