Ping and Echo Sample
Run

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.

MTOM Sample
Run

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 wire format of a SOAP message 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.