JAX-WS Web Services Samples - Introduction

These Samples demonstrate JAX-WS Web services. The Samples show the basic implementation of one-way and two-way Web services. Included in each Sample is a servlet that exercises the service using a browser, and a Sample using the Thin Client for JAX-WS with WebSphere Application Server that you can run from a command line.

Refer to the technotes to learn about the JAX-WS Samples and Web services.

To learn more about JAX-WS Web Services, see the Web Services documentation in the WebSphere Application Server Information Center Library.

 
Requirements: None.
 
 
  Ping and Echo Sample
The Ping and Echo Sample illustrates simple JAX-WS services. The Ping Sample demonstrates a one-way service transaction. A simple text string is sent from the service client to the service endpoint. The Echo Sample demonstrates a two-way service transaction. A simple text string is sent from the service client to the service endpoint. The service prepends an identifier and returns the string to the client. The Echo Sample also demonstrates the use of the synchronous programming model and also the use of two modes of the asynchronous programming model.

You can choose either SOAP 1.1 or SOAP 1.2 as the transport option for the Ping and Echo Samples.

The Ping and Echo Sample uses many of the Java Platform, Enterprise Edition (Java EE) and WebSphere Application Server functions, including servlets and JavaServer Pages (JSP) technology.

 
  MTOM Sample
The MTOM Sample illustrates the use of the SOAP Message Transmission Optimization Mechanism (MTOM) on the transport to send and receive binary files. The MTOM feature enables SOAP bindings to optimize the transmission or format of how the SOAP message looks on the wire by selectively encoding portions of the message, while still presenting an XML Infoset to the SOAP application. A file is sent from the service client to the service endpoint with the binary data encoded using MTOM.

The MTOM Sample uses many of the Java Platform, Enterprise Edition (Java EE) and WebSphere Application Server functions, including servlets and JavaServer Pages (JSP) technology.