Show TOC

Creating Clients for Locally Provided ServicesLocate this document in the navigation structure

Use

The Service Group creation and management mechanism is designed to simplify the configuration of Web service clients. It allows you to configure connections from the client to all used Web service endpoints. When there are many systems in your landscape that provide the Web services consumed by the client, you can create a provider system for each of these systems. Then you can choose which one should be used by the client simply by assigning the corresponding provider system to the Service Group. For more information, see Connection to Provider Systems and Configuration of Groups of Web Service Clients .

Sometimes you may need to create clients that should be deployed on the same system where the consumed Web services reside. In such situations, when you create the Service Group in SAP NetWeaver Developer Studio, you can mark it that it is for locally provided services. When you deploy the client, the SAP NetWeaver system notices this information and automatically configures the necessary logical ports for the client. This brings the following advantages to the development and configuration process:

  • You can start using the client just after you deploy it.

  • There is no need to create a provider system and to assign it manually to the Service Group of the deployed client.

Prerequisites
  • You develop a Web service client in SAP NetWeaver Developer Studio.

  • You deploy the client on the same SAP NetWeaver system where the consumed services are deployed.

Procedure
  1. Import the WSDL of locally provided Web service. For more information, see Importing WSDL Documents in the SAP NetWeaver Developer Studio .

  2. Create the Web service proxy. For more information, see Creating Web Service Proxies .

  3. Create a Service Group and make sure that the Local Provider System checkbox is selected. For more information, see Creating Service Groups .

  4. Create the Web service client application. For more information, see Creating Web Service Client Applications .

  5. Deploy the Web service client on the SAP NetWeaver system where the consumed Web services reside. For more information, see Building, Publishing and Removing Published Java EE Applications .

Result

After you deploy the Web service client, the SAP NetWeaver system automatically creates the logical ports for the client. The system performs this configuration process asynchronously in the background. Such background processing is performed at regular intervals, and it is normal for the system to wait until the time comes to start the background process again. Thus you can observe a delay between the deployment of the client and its automatic configuration. For more information, see Modifying SOA Configuration Background Process Settings .

You can monitor whether the system has configured the client in SAP NetWeaver Administrator in Start of the navigation path SOA Next navigation step Application and Scenario Communication Next navigation step Application Communication End of the navigation path.