Explaining the Configuration of a Process

Objective

After completing this lesson, you will be able to explain the configuration of the PO processes

Web Service Provider Configuration Overview

The figure illustrates the basic principle of the SOA web service provider configuration. Further explanations:

Scenario

A scenario is a group of service definitions. You can assign policies to one or more services in a scenario.

Policy

Policies contain runtime configuration settings (for example, for security and reliable messaging), that are enforced during consumer-provider communication. Policies, also called communication profiles, are reusable.

Service Group

A service group is a development artifact that is part of the consumer application configured at runtime. When configuring a service group, you can configure the consumer endpoints of the consumer application. A service group is a group of consumed services that run on the same system provider, for example for data integrity reasons on the provider side.

For a consumer, a service group is a bundle of references to services that must be provided by the same provider system. A consumer can contain many service groups. The service groups in a composite application developed in SAP Composition Environment are published to the service registry so that you can easily see which consumer applications can use by a service at runtime.

Provider Application Search

You can apply runtime configuration settings to multiple service definitions of a provider application all at once. You decide which service definitions to configure in a provider application and then expose those service definitions for consumption through runtime settings. You can search for and choose the provider applications that you want to configure in the Composite Explorer.

The figure illustrates the basic principle of the SOA configuration for connectivity. It also highlights the three main steps:

  • Configure consumers.

  • Connect systems.

  • Configure providers.

Configuration of Consumers

The following are the main elements required to configure services for consumers:

Configure Consumers

When configuring consumers as follows, the system automatically creates logical ports and publishes service groups to the Services Registry:

  • Group consumer proxies in service groups.
  • Associate policies and service groups.
Connect Systems

The following should be created to connect systems:

  • Create policies.
  • Create connections between the consumer system and the provider systems.
Configure Providers

When configuring providers as follows, the system automatically generates endpoints and publishes them to the Services Registry:

  • Group Web services in scenarios.
  • Apply policies to the Web services in the scenario.
Create Service Groups

A composite application can make use of a multitude of services. Configuring those services individually would:

  • Require a large initial effort.
  • Make configuration changes expensive because all affected services have to be touched.
  • Increase the chance of configuration errors and inconsistencies.

Grouping the services eliminates those issues because configuration is done only once for a set of services, and changes can be applied quickly at a single point. A general approach is to:

  • Create Service Groups at design time in SAP NetWeaver Developer Studio (NWDS)
  • Configure the groups in NetWeaver Administrator after the deployment onto the application server

Consumption

Service Groups are defined in SAP NWDS when importing service interfaces. Once deployed to the AS Java, the Service Groups need to be configured in the SAP NetWeaver Administrator.

The settings for assigning system are found under SAP NetWeaver AdministratorSOA ManagementTechnical ConfigurationSystem Connections

Communication Profile Creation

When creating communication profiles, you will need to specify the following:

  • Security policies
  • Messaging settings
  • Transport settings
  • Name and description of the communication profile

When a communication profile is assigned to a service definition, the system creates one or more service endpoints for the service definition. Each endpoint represents an alternative policy in the communication profile. For example, the system can create separate endpoints that require basic authentication, X.509 Client Certificate, and SAML Assertion for HTTP communication. If checked, Allow Only Secure Communication radio button enables only HTTPs communication.

Each communication profile has a version, which is automatically assigned to the profile when it is created. Each time you edit a communication profile a new version is created. Multiple versions of a communication profile can exist, each version with its own settings. Version numbers start at 1, and each subsequent version number is increased by 1.

When you assign different profiles to the same service definition, the system creates service endpoints that contain the configuration settings of each profile assigned to the service definition. When you assign a profile to a service definition, all of the profile versions are assigned to that service definition. The system then creates a service endpoint for every version available in the active profile.

Communication Profile Assignment to a Provider Application

After having configured the profiles, it is required, to set up the connections to a provider system. The figure illustrates the required steps.

Consumer Application Search

You can apply runtime configuration settings to multiple service definitions of an application. You decide which service definitions in an application to configure and expose for consumption with applicable runtime settings. Find and choose the application you want to configure. You can find applications by entering a string in the Search field.

The figure illustrates the required steps for configuring service groups, as a potential part of configuring service consumers.

Provider System Connection

The settings for assigning system are found under SAP NetWeaver AdministratorSOA ManagementTechnical ConfigurationSystem Connections.

To establish a connection from a consumer to a provider system, you have to specify the following configuration settings:

  • Credentials to the system back end.
  • Communication profile.
  • Search method on the provider system.
  • Messaging settings.
  • System details and descriptions.

The system connection contains specific information about the provider system in the landscape, such as host name and port number, as well as information about the communication profile defining the policies for communication with that system, the mechanism for the discovery of Web services on it, and the concrete authentication credentials to access the Web Services Description Language (WSDL) or Web Service Inspection Language (WSIL) sources. You can create only one connection for every provider system in the landscape.

At a later stage, you identify the configured provider systems in the SAP NetWeaver Administrator applications by the system landscape directory ID (SLD ID) which you provide in this stage.

Create a System Connection

When creating a connection, you browse provider systems on the wizard that opens by choosing the button next to the System Name field. To use this value help, you must have established connection to the Services Registry. The value help displays all systems whose Web services are published to the Services Registry.

As a next step, you provide a metadata user with which you can access the back end of the system. On the next step you choose the communication profile, which you want to use. Note that the system connection is established over the highest active version of the profile. Finally, you can choose a specific search mechanism for services on the provider system (WSDL or WSIL documents, or Services Registry).

Connections to Provider System: Editing

Use the following high level procedure to edit a connection to a provider system:

  1. Open the connection for editing and update the relevant settings.
  2. Ping a connection.

    Use Ping Connection to test the created system connection. If the connection is set correctly, the framework displays all service definitions running on the provider system.

  3. Import and Export a connection.

    The framework allows you to export an established connection to a provider system from a consumer system and then reuse it on another consumer system.

System Connection User Assignment

Services are often called in the context of the user that currently runs the SOA application. In that case, the credentials of the user are passed on from the Java application server to the back end system using SAP logon tickets or similar methods.

In some instances, it might be required to call back end services using a fixed technical user. The credentials can be specified in the NetWeaver Administrator. Those credentials can then be added to provider systems or service groups to make sure that all related service calls are executed in the context of that user.

The procedure for adding user accounts follows:

  1. Enter a name and description.
  2. Enter authentication credentials.
  3. Enter WS Security settings.
  4. Enter HTTPs settings.

User Account Creation

If the Web services that you want to consume require authentication, you can provide this authentication in entities called user accounts. When you create a user account, you specify different authentication methods in the same entity. At a later stage, you can reuse and assign this account to one or more than one Web service on a provider system. When you assign the user account to a Web service, the system uses the authentication credentials in the account to invoke the Web service at runtime.

Depending on the authentication profile which you used in the service reference to the Service Group during design time, we recommend that you create one of the following user account assignments at runtime:

No Authentication

If this option is set during design time, the system does not require mandatory security configuration at runtime, however you may still provide such configuration. If at runtime you create and assign a user account, its authentication mechanism overrides the authentication settings (NoAuthentication) provided at design time.

Technical User

You configure the concrete service user settings (user name and password or certificate) at runtime by creating and assigning a user account. In this case, all service calls from the consumer application authenticate to the service with that user assignment.

Business User

At runtime, you only have to establish a SSO connection between both systems. In this case, you do not have to create and assign a user account.

Business or Technical User

You determine the authentication level and provide the concrete security mechanism. If you create and assign a user account at runtime, the system takes into account the Technical User authentication. Otherwise, if you only establish a SSO connection between the systems, Business User authentication is taken into account.

Settings for the User Account

Provide a name and description of the account and then specify the exact authentication mechanism. Later, you can edit the account and update the settings.

For the Credentials, enter the following settings:

  • To set basic authentication over the HTTP protocol, enter the user name and password in the provided fields.
  • To set authentication over the Web Service Security protocol, proceed as follows:

    In the Keystore View for WSSE drop-down menu, specify a key storage of signatures.

    In the Private Key for WSSE drop-down menu, choose the exact authentication key.

  • To set secure SSL communication over the HTTPS protocol, proceed as follows:

    In the Keystore View for HTTPS drop-down menu, specify a key storage of signatures.

    In the Private Key for HTTPS drop-down menu, choose the exact authentication key.

You can specify one or more authentication methods in the user account. An application on your client system can consume the Web service to which the account is assigned, if at least one of the authentication methods is allowed in the authentication mechanism for the service endpoint of the Web service.

Activate/Deactivate a User Account

The framework allows you to assign the active user account. The system activates the assignment of the user account.

When you deactivate user accounts, the system considers them deleted. However, the account and its assignments keep existing in the system, and you can activate and use it again at a later stage. The framework does not allow you to assign the inactive user account. The system deactivates the assignment of the user account.

The system creates a user account with status Active. As a next step you can assign the account. The assignment specifies a set of Service Groups and the corresponding Web services, which are running on the same provider system.

User Account: Assignment

To consume Web services, which require authentication and to consume them using a dedicated service user, you have to assign a user account to them. You can assign user accounts to one or more than one Web service running on a provider system. In addition, you can assign the same user account to one or more than one Service Group that contains a reference to the Web service. The consumer application invokes the business logic on the provider side using the authentication methods, which you provide in the user account.

The user account assignments which you create are also used by the system when you configure Service Groups.

The figure illustrates the procedure to assign the account.

You can narrow the user account assignment in one of the following ways:

Assignment to a provider system
In this case, you apply the user account to all Service Groups and the corresponding Web services that are running on the provider system.
Assignment to service definitions on a provider system

In this case, you apply the user account to the Service Groups and the corresponding Web services, which are specified explicitly in the assignment.

Assignment to a concrete service group and concrete service definition

In this case, you apply the user account to a specific Service Group and specific Web services, which are referred by this Service Group.

If there is more than one assignment to services on the same provider system, the framework uses the most concrete assignment with priority.

Model and Configure the Procurement Process

Exercise Information

Note

In this exercise, when the values include ##, replace the character with a two-digit number (01–30).

Exercise Options

You can perform this exercise in two ways:

  1. Live Environment: choose Start Exercise, and from the entry page choose Open PDF Document. Follow the steps described in this pdf in your own system landscape.
  2. Simulation: choose Start Exercise, and from the entry page choose Start Tutorial. Watch the step-by-step instructions within the simulation.

Note

We recommend running the simulation first.

Model and Configure the Procurement Process - Part 1

Model and Configure the Procurement Process - Part 2

Model and Configure the Procurement Process - Part 3

Log in to track your progress & complete quizzes