Entering content frame

Procedure documentation Web Service Creation Wizard Locate the document in its SAP Library structure

Use

The Web Service Creation Wizard (WS Creation Wizard) makes it possible to define a Web service in a few steps. Features are assigned using configuration profiles.

When a Web service is defined using the WS Creation Wizard, the following are also created automatically:

·         A virtual interface

·         A Web service definition

·         A Web service and a Web service configuration

 

Prerequisites

You have already created an EJB assembly project and assigned an EJB reference to this.

Procedure

...

       1.      Open the assembly project. Select the EJB reference and choose New –> Web Service.

This graphic is explained in the accompanying text

       2.      Enter the name of the Web service.

This graphic is explained in the accompanying text

       3.      Choose a suitable Default Configuration Type.

Configuration type:

Features:

Simple SOAP

·         Transport binding: SOAP through HTTP

·         Stateless communication

·         No security

Basic Auth SOAP

·         Transport binding: SOAP through HTTP

·         Stateless communication

·         Authentication: HTTP Basic

·         Authorization: Yes

All EJB security roles assigned
to all Web service methods

·         Transport guarantee: No

Secure SOAP

·         Transport binding: SOAP through HTTPS

·         Stateless communication

·         Authentication: Certificates

·         Authorization: Yes

All EJB security roles assigned
to all Web service methods

·         Transport guarantee: Integrity and confidentiality

       4.      In the Configuration Name field, enter a name for the Web service configuration. The URL suffix in the Access URL field is set automatically. This is the relative path specification under which the Web service is found.

       5.      Choose Next.

       6.      In the following dialog box, select the methods that are to be offered in the Web service. Choose Finish to confirm your entries.

       7.      On the following screen, enter the name of an EAR project, if required.

So that a Web service can be deployed, it has to be assigned to an EAR project. If the workspace contains several EAR projects or none at all, you need to enter a name for the EAR project. If an EAR project exists in the workspace, this EAR project is selected. 

This graphic is explained in the accompanying text

       8.      Deploy the Web service.

Select the name of the EAR project, and choose Build EAR File from the context menu.

Select the name of the generated EAR file, and choose deploy from the context menu.

Result

You have created a Web service and deployed it.

The virtual interface, the Web service definition, the Web service, and the Web service configuration were created automatically.

 

Leaving content frame