Below are basic instructions for deploying and testing the SOAP example services in your SLEE.

1

Start your SLEE:

$ cd $RHINO_HOME
$ ./start-rhino.sh

2

Go to the soap-examples folder:

$ cd soap-examples

3

Check the listen.port property in build.properties

Note The listen.port specifies the port that the SOAP RA will attempt to listen on when it is activated, and the port the test client will send to. The default port is 8000. Change it if necessary for your environment.

4

To deploy the examples, use the Ant deploy target:

$ ant deploy

This deploys the SOAP Resource Adapter and example SOAP services (Ping and Request).

5

To test the Ping service, use the simple SOAP client included with the examples. To compile and run it, use the run-test-client target:

$ ant run-test-client
Note

The SOAP client
(src/com/opencloud/slee/example/soap/client/SoapClient.java):

  • reads a SOAP envelope from the file
    (src/com/opencloud/slee/example/soap/client/pingtest.xml),

  • sends the envelope to the URL represented by the SOAP RA
    (http://localhost:listening-port)

  • and prints the response received, sent by the Ping service
    (src/com/opencloud/slee/example/soap/ping/SoapPingSbb.java).

6

To test the Request service, use another SOAP client included with the examples. To activate and deactivate the service, use the run-request target and see the response on the Rhino log:

$ ant run-request
Note

The SOAP client Request service
(src/com/opencloud/slee/example/soap/request/SoapRequestSbb.java):

  • sends the same request,

  • creates a SOAP request on activation,

  • and logs the response sent back.

Previous page Next page