Show TOC

Choosing a Service Endpoint Interface OptionsLocate this document in the navigation structure

Use

When creating an inside-out Web service, you can use a service endpoint interface (SEI) to expose some or all methods of the implementation bean as Web service methods. An SEI is a Java interface, which declares the methods of the implementation bean a consumer application can invoke on the Web service. It represents the Web service contract definition and enables you to separate that contract definition from the Web service implementation.

The use of a SEI to create a Web service allows you to develop the implementation class and the Web service consumer application in parallel and independently in time based on the SEI.

Procedure
  • Do not use an explicit Service Endpoint Interface

    The contract definition is not decoupled from the Web service implementation.

    1. Choose Do not use an explicit Service Endpoint Interface .

    2. Choose Next .

    3. On the Web service customizations screen, change the values or accept the default ones, and then choose Next .

      Note

      After you deploy the Web service, you can use the value in the Wsdl URL preview field to view the WSDL document of the Web service in a Web browser. At this step, you can copy the WSDL URL so that you have it at hand.

    4. Choose the indicators for the methods of the implementation class, which you want to expose as a Web service.

    5. Choose Next .

      Caution

      If you create an inside-out Web service from an Enterprise Java Bean (EJB), choose Next twice.

  • Specify Existing Interface

    You create the Web service against a Java interface (the SEI) available in advance. The SEI contains the methods of the implementation class, which you want to expose as a Web service.

    1. Choose Specify existing interface .

    2. Choose Browse .

    3. Choose the service endpoint interface you want to use, and then choose OK .

    4. Choose Next .

    5. On the Web service customizations screen, change the values or accept the default ones, and then choose Next .

      Note

      After you deploy the Web service, you can use the value in the Wsdl URL preview field to view the WSDL document of the Web service in a Web browser. At this step, you can copy the WSDL URL so that you have it at hand.

    6. Choose Next .

  • Create new interface

    The Developer Studio creates a Java interface (the SEI) containing the methods, which you choose to expose.

    1. Choose Create new interface .

    2. Enter a name for the SEI.

    3. If necessary, change the SEI package and the folder where the Developer Studio should create the SEI.

    4. Choose Next .

    5. On the Web service customizations screen, change the values or accept the default ones, and then choose Next.

      Note

      After you deploy the Web service, you can use the value in the Wsdl URL preview field to view the WSDL document of the Web service in a Web browser. At this step, you can copy the WSDL URL so that you have it at hand.

    6. If the implementation class extends a superclass whose methods you also want to expose, choose Show superclass methods .

    7. Choose the indicators for the methods of the implementation class and/or its superclass, which you want to expose as a Web service.

    8. Choose Next .

More information:

Creating an Inside-Out Web Service from a Java Class

Creating an Inside-Out Web Service from an Enterprise Java Bean