To build the service invocation sample, follow these steps:
To create the HelloService dynamic web project, complete the following steps:
HelloService.WebSphere Process Server v7.0 as the Target Runtime.2.5 for the Dynamic Web Module version.custom for the Configuration.
If the Open Associated Perspective dialog appears, click Yes.

The New Java Class window opens.
bpc.samples.invoker.HelloService.
The HelloService.java editor opens.
Note: If the HelloService.java editor is not opened by default, the file is located at Enterprise Explorer > HelloService > Java Resources: src > bpc.samples.invoker.
public String hello(String name){
System.out.println("HelloService.hello(String name): value of name: " + name);
if( name == null || name.equals("") ){
return "Hello World";
}
else{
return "Hello " + name;
}
}
.Note: Before performing the following steps, start server WebSphere Process Server v7.0.
To generate the Web Service for the HelloService class, complete the following steps:

The Web Service window opens.
Bottom Up Java bean Web Service is selected.
To create a new module, complete the following steps:

The New Module window opens.
Invoker.To import the InvokerService interface, complete the following steps:

The Import window opens.

To create the business process interface, complete the following steps:

The New Interface Wizard window opens.
InvokerProcess.bpc/samples.
and close the interface editor.Create a new business process:

The New Business Process window opens.
InvokerProcess.bpc/samples.Add a Reference Partner to your process:

This operation does not change anything on the canvas, but rather adds the reference partner HelloService (circled red) with the appropriate reference interface.
Add an Invoke activity to your process:
from the palette. This icon can be found here.
is added.InvokeHelloService. The Display Name field can as well be changed in the Description section of the Properties view; a change of the display name will as well update the Name field.
under Read From Variable. A popup with available variables opens.
under Store Into Variable. A popup with available variables opens.
.To finish the implementation of the invoker process, you have to create the module assembly. Complete the following steps:
is added.
is added to the editor.HelloService.
.
Refer to the Run the Sample section on how to run the sample. For further information on using BPC Explorer refer to the product documentation.
If you want to run this sample business process on a WebSphere Process Server, you have to create two enterprise applications. Then, you can install these enterprise applications to your WebSphere Process Server.
To create an enterprise application for the InvokerApp business process, follow these steps:
Note: if you do not have a WebSphere Process Server besides the integrated test environment, you can skip this chapter.

The HelloService.ear application is deployed and started.
Repeat the steps above to install the InvokerApp business process.
Refer to the Run the Sample section on how to run the invoker process.