Entering content frame

Procedure documentation Creating a Web Service and a Web Service Configuration Locate the document in its SAP Library structure

Use

You can define several Web services for each Web service definition. The Web service is the container for the Web service configuration. A Web service configuration (WS Configuration) defines the behavior of the Web service at runtime.

The Web service configurator is familiar with the system landscape and the technical requirements of the application server where the Web service is to be called. In the configuration editor, he or she assigns attributes to features selected in the WSD.

Prerequisites

You have created a VI and a WSD.

Procedure

...

       1.      Create an EJB assembly project. Choose File ® New ® Project ® J2EE ® EJB Assembly Project. Now add an EJB reference in the dialog box.

       2.      Select the Assembly project. In the context menu, choose the path New  ® Web Service Deployment Descriptor. In the following dialog box, confirm this by pressing Finish. On the right, you see the WS Deployment Descriptor Editor.

       3.      Select the node for the deployment descriptor and choose Add. Choose the EJB reference and assign the name for the Web service. 

       4.      Create a WS configuration. Select the node created for the Web service and choose Add. Enter the required data. Choose the appropriate transport binding.

Note

Several configurations can be created for each Web service also. The transport binding is the same for all configurations. Only when you execute the create function do you have the option of choosing a SOAP or HTTP binding.

       5.      Define the WS configuration. Click the subnode of the WS configuration and make the appropriate settings.

This graphic is explained in the accompanying text

 

Subnode:

Notes:

Overview

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

WSD

The system displays information on the WSD and the EJB that are the basis for the Web service configuration.

Security Configuration

Choose the required Authentication Type for the Web service. Only options that do not conflict with the authentication defined already in the WSD are allowed. (See also Creating a Web Service Definition.)

If the Authorization option was selected at design time, roles are assigned for the operations of the Web service. You can change the assignment by choosing Use Authorization.

For more information, refer to the section Web Services and Security.

Transport Binding

You can configure the transport binding selected for the WS configuration (item 4). Using the Change pushbutton, you can set http headers. You can change the namespace and the encoding style for input, output, and exception handling of operations.

Advanced

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

       6.      Save your entries.

       7.      Create a JAR file. Choose Build JAR Files in the context menu of the assembly project node.

       8.      Create an enterprise assembly project. Choose File ® New ® Project ® J2EE ® Enterprise Assembly Project. In the subsequent dialog, select the JAR file that is to be included in the EAR project.

       9.      Select the EAR project in the J2EE view, and choose Build EAR File from the context menu.

   10.      Deploy the EAR file. Select it, and then choose Deploy in the context menu.

   11.      Publish a Web service in the UDDI. For more information, refer to the section Web Service Administration Using the Visual Administrator.

 

Result

You have defined the runtime behavior of the Web service, deployed the Web service, and published it in the UDDI. The Web service is available for proxy generation on the client side. 

 

 

Leaving content frame