
With the Destination service, you can set up HTTP(S) or RFC connections from the AS Java to other servers. The data to use for the connection (target address and user authentication information) is specified in the Destination service as a destination entry.
The following types of destinations are supported:
HTTP destinations support HTTP-Post and HTTP-Get requests to HTTP or HTTPS URLs. RFC destinations are used for connections to ABAP servers.
In earlier releases, you also maintained logon data for Web services in the Destination service. These are now maintained in the logical ports for the Web service. For more information, see Authentication .
You can either set up destinations manually using the SAP NetWeaver Administrator or you can use the service's API to establish destinations programmatically.
This documentation applies to the programmatic use of the API to set up the destinations. For more information about using the SAP NetWeaver Administrator, see Destination Service in the Administration Manual.
Secure Storage
The URL and user authentication information specified in the destination entry is saved encrypted using the AS Java's Secure Storage service.
Using SSL for HTTPS Connections
HTTP destinations can also use the Secure Sockets Layer (SSL) protocol to establish secure connections to the target server. The Destination service uses the secure connection factory to establish these connections.
The corresponding public-key certificates are to be stored in a keystore entry in the Key Storage service. These include the trusted CA certificate to use to verify the target server's server certificate and, if applicable, the user's X.509 client certificate to use for authentication.
Using SNC for RFC Connections
You can use Secure Network Communications (SNC) to secure RFC connections to ABAP systems. In this case, you must use SAP NetWeaver Single Sign-On or an external security product to provide the protection.
Logging
The Destination service uses the AS Java's logging API. Any debugging logs are written to the system/security log .
You specify the authentication method to use for a connection when you create the HTTP destination. The following authentication methods are supported:
With this option, then you must specify the user ID and password to use for the connection. The user information is then sent with the request in an HTTP Basic Authentication header.
In this case, SSL with mutual authentication is used to authenticate the client. To use this option, you must specify the public-key certificate from a keystore entry in the Key Storage service to use for the client authentication.
In this case, the current user must possess a logon ticket. The logon ticket is then sent with the request.
For system connections between the AS Java and an AS ABAP service using jRFC or HTTP, there is an additional ticket type called the authentication assertion ticket. This ticket is structured the same as the standard logon ticket and is used in a similar manner with the following restrictions:
All Destinations
Your application needs classloader references to tc~sec~destinations~service and tc~sec~destinations~interface .
HTTP Destinations
RFC Destinations
You can use the Destination service API to create, delete, change or use destinations.
Creating a Destination
To create a destination:
Using a Destination
To establish a connection using a destination:
See also:
Interfaces and Classes for Using the Destination Service API
Examples for Using the Destination Service API