This section shows you how to develop a Java client using the JAX WS stack. It uses the PAPI Web Service to retrieve a list of process instances visible to the connected user.
You can use this project as a basis to develop more complex examples. To do this you have to replace the class PapiWsJaxWsExample by the classes you develop, and change target run in the ant script so that it executes the new class.
This example uses Wsimport ant task to generate this artifacts. For information about Wsimport, see https://jax-ws.dev.java.net/nonav/2.1.2/docs/wsimport.html .
A PAPI Web Service client includes one or more Java classes that contain the code to invoke PAPI Web Service and operate with it. You have to code this classes yourself. The code in these classes uses JAX-WS portable artifacts to access the web service and to operate with it.
For a detailed analyses of this class, see JAX WS Client Main Class .
You can download the set of java classes of this example from http://edocs.bea.com/albsi/docs60/resources/papi_ws/ALBPM-PapiWs-JaxWs-Example.zip . For information on how to run this example seeRunning Java JAX WS Client Example.