Show TOC Start of Content Area

Procedure documentation Creating and Configuring Web Services

Use

A Web service configuration (WS Configuration) defines the properties of the Web service at runtime. One or more Web service configurations are assigned to a Web service.

Prerequisites

A service collection and a service interface are created.

Procedure

...

       1.      In the Service Explorer of the Enterprise Services perspective, open the EJB project and select a service interface.

       2.      From the context menu, choose New Web Service. 

       3.      In the dialog box that appears, enter the following data:

                            a.      A name for the Web service.

                            b.       A name for the Web service configuration.

                            c.      The design time variant that has been defined during the service interface creation.

                            d.      The appropriate transport binding. The following transport bindings are available: HTTP SOAP, HTTP GET, HTTP POST, and SOAP with attachments.

       4.      Choose Finish.

       5.      Open the new Web service by double-clicking it.

The Web Service Configuration Editor is displayed.

       6.      Expand the WS configuration node and make the appropriate settings.

Subnode

Notes

Overview

The URL suffix in the Path field is set automatically. You can change the relative path specification if required.

The system displays information about the service interface and the EJB that are the basis for the Web service configuration.

Security

Choose a transport protocol and an authentication template for the Web service. See…

 

Authorization

If the Authorization option was selected at design time, roles are assigned for the operations of the Web service.

Advanced

You can enter the WSDL port name, the WSDL binding name and the address of the target server. 

       7.      If you want, you can create more Web service configurations with different settings. Choose Add and enter the required data.

       8.      Save your entries.

       9.      Create an enterprise application project. Choose File New Project J2EE Enterprise Application Project.

   10.      Publish the EAR file to an SAP server.

 

Result

You have defined the runtime properties of the Web service, deployed it on the J2EE Engine. The Web service is available for proxy generation on the client side. 

 

 

End of Content Area