Creating a service endpoint interface

This recipe explains how to create a service endpoint interface. A Service Endpoint Interface (SEI) is used in Java for exposing JavaBeans as web services, or more accurately, SEI defines the methods of Java code to be exposed as web services. The interface class must extend the java.rmi.Remote interface and all methods of the interface must throw java.rmi.RemoteException.

How to do it…

In our example application, the most appropriate part of the application to expose is the credit card operations module. It already contains all the relevant methods that we want to expose:

  1. We right-click on CreditCardGateway.java in JDeveloper.
  2. Select Create Web Service…. The Create Web Service wizard opens at Step 2:
  3. Select ...

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.