Time for action – adding onEvent to the callback interface
To add the onEventoperation to the callback WSDL interface, we will proceed as follows:
Open the BookWarehousingBPEL.wsdl interface.
Scroll down to the declaration of the BookWarehousingBPELCallback port type. We can see that the port type specifies a single onResult operation:
We will add another operation, onEvent, which we will use to signal that an event has happened on the BPEL process. In our example, we will use the same input message as in the onResult operation. Let's add the onEvent operation declaration:
What just happened?
We have added an onEventoperation declaration to the WSDL callback interface of the BPEL process. We will use this callback operation to signal to the client that an event has happened on the BPEL process.