Defining the service interface

Through the service interface, a web service exposes functionality to the outer world. The interface methods can be simple, such as setting properties to more complex operations such as performing calculations or updating records in a database. We have described the WSDL interface in the introduction of Chapter 2, Calling Services from BPEL, however, in this recipe, we will work on the Java interface. We use the Java interface when the Java code itself will define the web service and the WSDL document of deployed web services is generated from the Java code.

Getting ready

We described in the Introduction section that the core of the sample is the BookLibrary class. However, the sample is not yet implemented. To set ...

Get BPEL and Java Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.