Network Deployment (Distributed operating systems), v8.0 > Applications > Web services
Web services
Web services are self-contained, modular applications that you can describe, publish, locate, and invoke over a network.
WAS v8 supports web services that are developed and implemented based on the Web Services for Java EE specification. WAS v8 supports the Java API for XML Web Services (JAX-WS) programming model and JAX-RPC. The JAX-WS is a strategic programming model that simplifies application development through support of a standard, annotation-based model to develop web services applications and clients.
A typical web services scenario is a business application requesting a service from another existing application. The request is processed through a given web address using SOAP messages over a HTTP, JMS transport or invoked directly as EJB. The service receives the request, processes it, and returns a response. Examples of a simple web service include weather reports or getting stock quotes. The method call is synchronous, that is, the method waits until the result is available. Transaction web services, supporting quotes, business-to-business (B2B) or business-to-client (B2C) operations include airline reservations and purchase orders.
Web services can include the actual service or the client that accesses the service.
Web services are web applications that help improve the flexibility of your business processes by integrating with applications that otherwise do not communicate. The inner-library loan program at your local library is a good example of the web services concept and its evolution. The web service concept existed even before the term; the concept became widely accepted with the creation of the Internet. Before the Internet was created, you visited your library, searched the collections and checked out your books. If you did not find the book that you wanted, the librarian ran a search for you by computer or phone and located the book at a nearby library. The librarian ordered the book for you and you picked it up after it was delivered to your local library. By incorporating web services applications, you can streamline your library visit.
Now, you can search the local library collection and other local libraries at the same time. When other libraries provide your library with a web service to search their collection (the service might have been provided through Universal Description Discovery and Integration (UDDI), your results yield their resources. You might use another web service application to check out and send the book to your home. Using web services applications saves time and provides a convenience for you, as well as freeing the librarian to do other business tasks.
Web services reflect the service-oriented architecture (SOA) approach to programming. This approach is based on the idea of building applications by discovering and implementing network-available services, or by invoking the available applications to accomplish a task. Web services deliver interoperability, for example, web services applications provide components created in different programming languages to work together as if they were created using the same language. Web services rely on existing transport technologies, such as HTTP, and standard data encoding techniques, such as XML, for invoking the implementation.
The key components of web services include:
- WSDL
WSDL is the XML-based file that describes the web service. The web service request uses this file to bind to the service.
- SOAP
SOAP is the XML-based protocol that the web service request uses to invoke the service.
- Universal Description, Discovery and Integration Protocol (UDDI)
UDDI is the registry that hosts the service broker. UDDI is similar to the Yellow Pages in a phone book.
For a more detailed scenario, see the web services scenario overview information to learn more about the story of a fictional online garden supply retailer named Plants by WebSphere, and how this retailer incorporated the web services concept.
For a complete list of the supported standards and specifications, see the web services specifications and API documentation.
Related
Web Services for Java EE specification
Artifacts used to develop web services
WSDL
SOAP
JAX-WS
JAXB
JAX-RPC
WS-I Basic Profile
WS-I Attachments Profile
Service-oriented architecture
Overview: Online garden retailer web services scenarios
Use the UDDI registry
Enable web services through the service integration bus
Use WS-Notification for publish and subscribe messaging for web services
Related
Web services specifications and APIs Concept topic