+

Search Tips   |   Advanced Search

The <connectionPolicy> element of the SAP Netweaver Gateway adapter

The structure of the <connectionPolicy> element.

The <connectionPolicy> element has the following structure:

<connectionPolicy xsi:type="nwgateway:NWGatewayHTTPConnectionPolicyType">
  <protocol>protocol</protocol>
  <domain>host-name</domain>
  <port>host-port</port>
  <client>sap-client</client>
  <username>sap-username</username>
  <password>sap-password</password>
  <serviceRootUrl>service-root-url</serviceRootUrl>
  <authentication>...</authentication>
  <sslCertificateAlias>ssl-certificate-alias</sslCertificateAlias>
  <sslCertificatePassword>ssl-certificate-password</sslCertificatePassword>
  <proxy>...</proxy>
  <tcpConnectionTimeout>connection_timeout</tcpConnectionTimeout>
  <tcpSocketTimeout>socket_timeout</tcpSocketTimeout>
</connectionPolicy>

The <connectionPolicy> element has the following attributes:

Attribute Description
xsi:type Mandatory. The value of this attribute must be set to nwgateway:NWGatewayHTTPConnectionPolicyType.

The <connectionPolicy> element has the following subelements:

Subelement Description
protocol Mandatory. The URL protocol to use. Possible values are http (default) and https.
domain Mandatory. The SAP Netweaver Gateway server address.
port Mandatory. The SAP Netweaver Gateway server port address. Default is 80.
client Mandatory. The SAP-Client to be used to contact the Netweaver Gateway. Default is 1.
username Mandatory. The user name for contacting the Netweaver Gateway. Default is sap-username.
password Mandatory. The password for contacting the Netweaver Gateway. Default is sap-password.
serviceRootUrl Mandatory. The root URL for the SAP Netweaver gateway service that you are trying to access.
authentication

Mandatory. Authentication configuration for the SAP Netweaver gateway adapter. A sample authentication follows:

<authentication>
  <basic />
  <serverIdentity>
    <client>001</client>
    <username>mygatewayuser</username>
    <password>mygatewaypassword</password>
  </serverIdentity>
</authentication>

See The <authentication> element of the HTTP adapter. The SAP Netweaver Gateway adapter shares the same authentication configuration stanza with the HTTP adapter except that <serverIdentity> requires one additional <client> tag.

sslCertificateAlias

The alias of the adapter private SSL key. Used by the SAP Netweaver gateway adapter key manager to access the correct SSL certificate in the keystore.

Optional for regular HTTP authentication and simple SSL authentication. Mandatory for mutual SSL authentication.

The keystore setup process is described in SSL certificate keystore setup.

sslCertificatePassword

Password of the adapter private SSL key. Used by the SAP Netweaver gateway adapter key manager to access the correct SSL certificate in the keystore.

Optional for regular HTTP authentication and simple SSL authentication. Mandatory for mutual SSL authentication.

The keystore setup process is described in SSL certificate keystore setup.

proxy

Optional. Used when the backend application must be accessed through a proxy.

See The <proxy> element of the HTTP adapter. The SAP Netweaver Gateway adapter shares the same proxy configuration stanza with the HTTP adapter.

tcpConnectionTimeout Optional.

Possible values:

  • The default is 15 seconds.

  • Use -1 to specify an unlimited time.

tcpSocketTimeout Optional. The maximum period of inactivity between two consecutive TCP packets after a connection has been made.

Possible values:

  • The default is 60 seconds.

  • Use -1 to specify an unlimited time.


Parent topic: The adapter XML File