Reliable HelloWorld client  Locate

Overview  Locate

This demo shows the basics of SESJ's WS-ReliableMessaging implementation through a simple reliable HelloWorld client of the basic/hello demo service. It sends reliable requests (responses are not reliable), consisting of WS-RM sequences with length 1. The DII client invocation of the basic/hello service is used, so it is not necessary to generate a Java proxy interface from WSDL. The WSDL is in the client classpath so the client application can be started without running the server.

Demo Package Description  Locate

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

File or directoryDescription
src/demo/reliability/hello/client/

Client source code

wsdl/HelloService.wsdl

Service WSDL file

Building and Running Demos  Locate

You can run the demo using "run.sh" or "run.bat" scripts. The script on invocation without arguments prints out a help message.

  1. Compile and publish hello service (located in src/demo/basic/hello/server). See basic/hello demo. Runtime publication of a reliability aware service is demonstrated there.

    Windows: run.bat make_server
    run.bat run_server
    Linux:   ./run.sh make_server
    ./run.sh run_server (use a new terminal)
                    
  2. Make client classes ...

    Windows: run.bat make_client
    Linux:   ./run.sh make_client
                    
  3. Run the HelloClient (it calls HelloService). You can try to run the client while the server is offline and start the server later.

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

    If you wish to follow the progress of the invocation with SoapSpy, perform the following:

    1. Run server_java60/bin/soapspy.bat or soapspy.sh. This will bring up the SoapSpy GUI.

    2. Start spying by selecting Start Spying from the Spy menu or by clicking the spy icon in the main pane.

    3. Run the client using the run spy_client command instead of run_client.