Configuring a Consumer Proxy
Configuring a Consumer Proxy
You can configure individual service consumers by applying the configuration settings for each proxy definition. To configure a consumer proxy to access a particular service, you need to create and configure one or more logical ports.
A logical port references an endpoint, which is available at a unique location on the provider system. For this reason, a logical port is created based on the requirements of the provider.
A logical port is a reference to runtime configuration on the consumer system to access the service endpoint. You can create more than one logical port for the same consumer proxy definition. Each logical port can have only one runtime configuration, and points to only one endpoint.
Prerequisites
You can create a logical port in two ways:
- Based on the WSDL document for a service.The WSDL document describes how to access the endpoint, and includes the URLs for all the endpoints defined for a service.You need to know:
- The URL that points to the WSDL document for the service
- The access parameters for the WSDL document (alternatively, you have the WSDL document stored as a file)
- ManuallyHere, an WSDL document is not available.You need to know:
- The URL of the endpoint
- The configuration settings that the provider expects
Procedure
Creating a Logical Port
- From the main screen of the SOA Manager, go to the Application and Scenario Communication tab.
- Select Single Service Administration.
- Specify the consumer proxy or search for it.
- Select the consumer proxy from the overview and choose Apply Selection to display an overview of design-time information.
- Go to the Configurations tab.
- To create a new logical port, choose Create Logical Port.A dialog box is displayed.
- Specify a name for the service.
- Specify a name for the new logical port.To make this logical port the default logical port, select Logical Port is Default. If a consumer application is not configured to call a specific logical port, it calls the default logical port.
- Select the configuration type.For WSDL-based configuration, the system extracts the endpoint URL from the WSDL document for the service.For Manual configuration, the system uses a user-specified endpoint URL to create a logical port. You need to specify a unique name for the logical port.
- For WSDL-based configuration, specify the WSDL access settings.You have the following options:
- Via HTTP accessSpecify the path to the WSDL document and a user and password.
- Via FileSpecify a file for WSDL Access
- Choose Apply Settings.The default settings for the logical port are displayed.
- Check the configuration.Some options may not be available or complete. For example, passwords.The following configuration options are available:SecurityUser and password for authentication with the service providerWeb Service AddressingSpecify the protocol for Web service Addressing. A reference parameter is optional.If only 1 protocol is supported, the protocol is pre-set.If no protocols are supported, the field is empty.MessagingSet the protocol for reliable messaging (WSRM) and the confirmation interval.RM Protocol: Specify the protocol for reliable messaging.If only 1 protocol is supported, the protocol is pre-set.If no protocols are supported, the field is empty.Message ID Protocol: Each message needs an ID for two protocols, WS-A Message ID and SAP Message ID. Suppress ID transfer – This option is for older releases.Statistics for Service Calls: Determine the volume of data transferred and the protocol to use to transfer metering data.The service metering feature allows SAP NetWeaver components involved in the provisioning and consumption of Web services to collect information about which client components are consuming which Web services. The information collected in the SOA back-ends can be read by SAP EarlyWatch and analyzed with the aim of optimizing SOA scenarios and the enterprise services.The following options determines which fields data is transferred from:
- Minimal Data TransferThe consumer application will send only Calling Application Type to the provider.
- Elementary Data TransferThe consumer application will send Calling Application Type, Calling Component, and Calling Application IDto the provider.
- Enhanced Data TransferThe consumer application will send all the caller information attributes to the provider except Calling User Code.
CAUTIONIncreasing the service metering level may lead to a security risk. When you set the amount of service metering data, you should consider the trustworthiness of the Web service provider:NOTEService metering information is currently not used on the provider side.Transport SettingsThe settings for transport between the provider and the consumer. The settings here are stored together in the complete URL.Make Local Call: A local call is only used if processing is done within the same provider system. If local only calls are made, unnecessary steps, such as authentication, can be omitted.Maximum Wait for WS Consumer: The HTTP timeout determines how long the consumer waits for a response from the provider. If you expect a high load on the provider system that would delay the responses to consumers, consider increasing the default value.0 seconds is infinite.Optimized XML Transfer: Determines the XML transfer between consumer and provider. If both the consumer and the provider are ABAP systems, you can select Binary XML to reduce the conversion overhead between these systems.Compress HTTP Message: Allows the consumer to send zip-compressed requests. This option is only of interest if you are expecting very large message sizes. For normal message sizes, the compression would take too long for there to be any benefit.Accept Compressed HTTP Message: Allows the provider to return zip-compressed responses to the consumer. This option is useful if you expect the provider to return data volumes of several MB in size.Operation specificIf a message is assigned to an operation, the operation parameter can be transferred in the HTTP header. This means that the message body does not need to be parsed for the operation parameter. - Save.
Editing a Logical Port
- Go to the Application and Scenario Communication tab and select Single Service Administration.
- Specify the consumer proxy or search for it.
- Select the consumer proxy and choose Apply Selection to display an overview of design-time information.
- To edit an existing logical port, select it and choose Edit.
- Specify the settings that you require.For more information about the configuration options, refer to: Creating a Logical Port
- Save.
Post a Comment