Creating Web Services from Java
ClassesJava classes can be provided as Web services.
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).
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.