One-way Demo  Locate

Overview  Locate

This demo shows how messaging may be done when the operation in the WSDL contains an input section only. This is also known as one-way messaging. Java2WSDL supports one-way operations with the '--one-way' option.

What You Will Learn  Locate

One-way messages can be used in situations where a reply cannot be delivered.

Sometimes, there is no need for a reply. In these cases using one-way messages can spare the network bandwidth and speed up the processing.

Demo Package Description  Locate

In addition to the files described in Files and Directories, this demo contains:

File or directoryDescription
src/demo/basic/one-way/server/

Server source code

src/demo/basic/one-way/client/

Client source code

Building and Running Demos  Locate

You can run the demo using the "run.sh" (for UNIX) or "run.bat" (for Windows) scripts. Running the script without arguments prints out a help message on screen.

The demo can be run in two different ways:

Runtime Publishing  Locate

To use Runtime Publishing, follow these steps:

  1. Be sure that you have not started SESJ.

  2. Compile the server classes.

    Windows: run.bat make_server
    Linux:   ./run.sh make_server
    
  3. Run the OneWayServer (it starts SESJ and publishes OneWayService class).

    Windows: run.bat run_server
    Linux:   ./run.sh run_server (use a new terminal)
    

    You can look at OneWayService WSDL on 'http://localhost:6060/demo/basic/OneWayService/wsdl' from your browser.

  4. Make the client classes.

    Windows: run.bat make_client
    Linux:   ./run.sh make_client
    
  5. Run OneWayClient (it calls OneWayService).

    Windows: run.bat run_client
    Linux:   ./run.sh run_client
    

Persistent Deployment  Locate

  1. To run using Persistent Deployment:

  2. Be sure that you've started SESJ.

  3. Compile OneWayService.

    Windows: run.bat make_service
    Linux:   ./run.sh make_service
    
  4. Deploy OneWayService on the SESJ.

    Windows: run.bat deploy_service
    Linux:   ./run.sh deploy_service
    
  5. Make the client classes.

    Windows: ./run.bat make_client
    Linux:   ./run.sh make_client
    
  6. Run OneWayClient (it calls OneWayService).

    Windows: run.bat run_client
    Linux:   ./run.sh run_client
    
  7. Undeploy OneWayService from the SESJ.

    Windows: run.bat undeploy_service
    Linux:   ./run.sh undeploy_service