Running Java JAX WS Client Example

The example contains all the necessary libraries to generate the stubs, compile and run it. These libraries are contained in the directory lib. It also contains an ant script that contains all the necessary configurations to compile, and run the client.

To run the example you need to install Ant. You can download it from http://ant.apache.org/bindownload.cgi

To run this example:

  1. Enable PAPI Web Service for an already existing project. See Enabling PAPI Web Service .
  2. Locate example file included with your Oracle BPM installation at <ORABPM_HOME>/samples/integration/BPM-PapiWs-JaxWs-Example.zip.
  3. Unzip the file. This will generate a directory named ALBPM-PapiWs-JaxWs-Example.
  4. Open a command-line session.
  5. Change to the generated directory. For example: cd ALBPM-PapiWs-JaxWs-Example.
  6. Type ant run. Executing this task generates the stubs the client code needs to run, using the ant task JAX WS provides for this purpose, and compiles the classes used in the example before running them.
  7. Enter PAPI Web Service's endpoint. You can copy this from the link displayed next to WSDL in the Web Services Console. For information on how to launch the Web Services Console see PAPI Web Service Configuration Console.

After executing this procedure the example program runs. You will see a list of the processes deployed in the running process engine and below them a list of all the in-flight instances in each process.