Show TOC Start of Content Area

Procedure documentation Creating Web Services from Java Classes

Use

Java classes can be provided as Web services.

Prerequisites

You have:

●     Created a Java class in the Java perspective.

●     Read the section Restrictions for WS Endpoints.

●     Created a DC component. For more information, see The Development Process.

●     Read the section Writing ABAP-Compliant Web Services (if appropriate).

Procedure

Select the class in the Service Explorer in the Enterprise Services perspective, then call the Web Service Quick Wizard by choosing New → Web Service Quick Wizard.

If you want to specify the features of the Web service yourself, proceed as follows:

       1.      Select the class in the Service Explorer of the Enterprise Services perspective, and choose New → Service Collection from the context menu. For more information, see Creating Service Collections and Service Interfaces.

       2.      Select the service collection and choose New → Service Interface.

       3.      Select the service interface and choose New → Web Service.

For more information, see Creating and Configuring Web Services.

       4.      Create an enterprise application project

       5.      Publish the EAR file.

To incorporate the Web service, you can create a deployable or a standalone proxy. For more information, refer to the section Consuming a Web Service.

 

End of Content Area