Configuring the HTTP adapter

Adapter type: ro-adapter-http_20.15.02.00

Default adapter name: HTTPAdapter

The Properties field in the adapter configuration of Grid Manager is a required field. If the default values are acceptable for all elements, you can enter a configuration node, <config/>, in the Properties field. When you set a configuration node, the adapter uses the default values for all the elements. If you use a proxy server for Internet connectivity, use the proxy settings shown in the <config> section in the XML sample of the HTTP adapter configuration. If your environment does not require a proxy server, you can set a configuration node.

BMC recommends that you do not include unused elements in the adapter configuration because they might cause the adapter to enter a fault state.

To configure the HTTP adapter, see Configuring base adapters.

The following table describes the adapter configuration elements for the HTTP adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.


Configuration node elements for the HTTP adapter

UI label

Element

Description

Required

Data Format

<data-format>

Specifies the format for the output

The configuration values can be overridden in the adapter request.

Valid values: HTML (default), XML, XHTML

Note: If an invalid value is specified for this element, the default value (HTML) is used.

No

Request Timeout

<request-timeout>

Specifies the time (in seconds) to wait when establishing a connection

Default value: 10 seconds.

No

Character Set

<character-set>

Specifies the supporting CharSet

Also called character set, it includes identifiers describing a series of universal characters.

Note: If you do not specify the supporting character set, the adapter response is parsed based on the character set in the HTTP response header.

No

None

<proxy-settings>

Contains the elements that define the HTTP proxy settings

If you provide this element, you must also specify the <host> and <port> elements.

You must specify the <user-name> and <password> elements only if the authentication scheme is enabled on the proxy server.

Note: To configure <proxy-settings>, you must switch to XML view as <proxy-settings> are not available as fields in a form view.

No

None

<proxy-ntlm-authentication>

Indicates whether to use NTLM authentication for the specified user credentials with proxy server settings

The adapter supports both NTLMv1 and NTLMv2 authentication.

Valid values: true, false (default)

If the value of the parameter is true, the adapter uses NTLMv1 or NTLMv2 authentication (based on the server configuration) to authenticate the user. Else, the adapter uses basic authentication.

No

None

<host>

Specifies the host name or the IP address of the destination host (proxy server) for the HTTP request

Note: You can specify an IPv6 address with a zone ID for the <host> element---for example,
<host>[fe80::5097:4c5e:2289:76dd]</host>.

You must specify the IPv6 address in square brackets ([ ]). To find the zone ID of the required computer, see Zone ID for an IPv6 address.

Conditional; required if you use <proxy-settings>

None

<port>

Specifies the destination port on the proxy server for the HTTP request

Conditional; required if you use <proxy-settings>

None

<user-name>

Specifies the name of the user to access the proxy server

Conditional; specify <user-name> only if the authentication scheme is enabled on the proxy server

None

<password>

Specifies the password for the specified user name

Conditional; specify <password> only if the authentication scheme is enabled on the proxy server

None

<signature-properties>

Contains the elements that specify information about the public key (X.509 certificate) and the private key that are used for the digital signature

The <signature-properties> element can contain the mode attribute that specifies the format in which the public (X.509 certificate) and private keys are provided for signing the HTTP request.

You can provide the keys using one of the following formats:

  • Java Keystore (JKS)
  • Privacy Enhanced Mail (PEM)
  • Definite Encoding Rules (DER) files
  • Base64-encoded PEM

    Valid values:
  • <signature-properties mode="keystore"> (default)
  • <signature-properties mode="key-files">
  • <signature-properties mode="key-data">

No

None

<keystore-file>

Specifies the path to the JKS that contains the client certificate

Conditional; required when the signature mode is keystore

None

<key-password>

Specifies the password of the key contained in the JKS

Note: If you do not specify <key-password>, then the value of <keystore-password> is used as the key password.

No

None

<keystore-password>

Specifies the password to the JKS

Conditional; required when the signature mode is keystore

None

<alias>

Specifies the name of the alias in the JKS that identifies the Public Key Certificate (PKC), which the web server uses to authenticate the client

Conditional; required when the signature mode is keystore

None

<private-key-file>

Specifies the file containing the private key, which is used to sign the HTTP request

The adapter supports the following formats:

  • Base64-encoded PEM
  • DER

Conditional; required when the signature mode is key-files

None

<certificate-file>

Specifies the file containing the public key (X509 Certificate)

The adapter supports the following formats:

  • Base64-encoded PEM
  • DER

Conditional; required when the signature mode is key-files

None

<private-key-data>

Contains an XML specifying the private key in an Base64-encoded PEM format

For example:
<private-key-data> ---- BEGIN PRIVATE KEY ----
MIICdQIBADANBgkqhkiG9w0
BAQEFAASCAl8wggJbAgEAAo
GBAKomKro6VbW4PeQtUhNz
ZpSH26vbBTBtH1r4EjnIv4vnh
SyyA62ewpROVNn0Spvjo
BFwE88HcX3tXym/zbVgtd
Pke9K+SYHP6CWdiLqn
........
---- END PRIVATE KEY ----</private-key-data>

Conditional; required when the signature mode is key-data

None

<certificate-data>

Contains an XML specifying the public key (X509 Certificate) in an Base64-encoded PEM format

For example:
<certificate-data> ---- BEGIN CERTIFICATE ----
MIICdzCCAeCgAwIBAgIFXseN1xYwDQYJKoZIhvcNAQEFBQ
AwUzELMAkGA1UEBhMCVVMxEzARBgNVBAoTCkFtYXpvbi5jb20x
DDAKBgNVBAsTA0FXUzEhMB8GA1UEAxMY
........
---- END CERTIFICATE ----</certificate-data>

Conditional; required when the signature mode is key-data

Enable Json Conversion

<enable-json-conversion>

Specifies whether the adapter should treat the input data in the request and the data received in the adapter response as a JavaScript Object Notation (JSON) string

If <enable-json-conversion> is set to true, the input data in the request (XML format) is converted to a JSON string after parsing and the response (if a JSON string) is converted to an XML format.

Valid values: true, false (default)

Notes:

  • The JSON string in the response is parsed to XML only if <enable-json-conversion> is set to true and <data-format> is set to XML.
  • If you specify <enable-json-conversion>in both the adapter configuration and the adapter request, the value in the adapter request overrides the value in the configuration.

Enable Redirects

<enable-redirects>

Specifies whether the adapter should redirect a URL request to the changed URL location

Valid values: true (default), false

If you specify <enable-redirects> in the adapter configuration and an adapter request, the values in the request override the values in the configuration.

No

Download attachment

<download-attachment>

Specifies whether the adapter should display the content of the attached file in the adapter response or save the content in a file

Valid values: true, false (default)

If <download-attachment>=true, the adapter checks the <content-disposition> field in the response header. If <content-disposition> conatins attachment, the adapter saves the attached file.

If the adapter response header does not contain the content-disposition field, the adapter checks the <content-type> field in the response header. If <content-type> contains an image or an attachment or an audio or a video, the adapter saves the attached file.

If <download-attachment>=false, the content of the attached file is displayed in the adapter response.

No

Download directory

<download-directory>

Specifies the full path where the attached file must be downloaded

Default value: Temporary directory of the Java virtual machine of the peer

No

The following figure shows an XML template for the HTTP adapter configuration.

XML template of the HTTP adapter configuration

<config>
   <data-format></data-format>
   <request-timeout></request-timeout>
   <character-set></character-set>
   <proxy-settings>
            <host></host>
            <port></port>
            <user-name></user-name>
            <password></password>
            <proxy-ntlm-authentication></proxy-ntlm-authentication>
   </proxy-settings>
   <enable-json-conversion></enable-json-conversion>
   <enable-redirects></enable-redirects>
</config>

The following figure shows an XML sample for the HTTP adapter configuration. As seen in the figure, to resolve proxy settings errors, enter the proxy settings for the Internet connection. To resolve authentication errors, enter a valid username and password.

XML sample of the HTTP adapter configuration

<config>
      <data-format>HTML</data-format>
      <request-timeout>15</request-timeout>
      <character-set>utf-8</character-set>
      <proxy-settings>
            <host>10.10.75.120</host>
            <port>3128</port>
            <user-name>jones</user-name>
            <password>bmc1234</password>
            <ntlm-authentication>true</ntlm-authentication>
            <proxy-ntlm-authentication>true</proxy-ntlm-authentication>
      </proxy-settings>
      <enable-json-conversion>true</enable-json-conversion>
      <enable-redirects>true</enable-redirects>
</config>

The following figure shows an XML sample for the HTTP adapter configuration when the adapter supports mutual authentication and mode is keystore.

XML sample of the HTTP adapter configuration when the adapter supports mutual authentication and <mode> is keystore

<config>
    <signature-properties mode="keystore">
        <keystore-file>filePath\server.jks</keystore-file>
        <keystore-password>changeit</keystore-password>
        <alias>1</alias>
        <key-password>abcdef</key-password>
    </signature-properties>
</config>

The following figure shows an XML sample for the HTTP adapter configuration when the adapter supports mutual authentication and mode is key-files.

XML sample of the HTTP adapter configuration when the adapter supports mutual authentication and <mode> is key-files

<config>
    <signature-properties mode="key-files">
        <private-key-file>filePath\serverkey.pem</private-key-file>
        <certificate-file>filePath\server.pem</certificate-file>
    </signature-properties>
</config>

The following figure shows an XML sample for the HTTP adapter configuration when the adapter supports mutual authentication and mode is key-data.

XML sample of the HTTP adapter configuration when the adapter supports mutual authentication and <mode> is key-data

<config>
    <signature-properties mode="key-data">
    <private-key-data>-----BEGIN RSA PRIVATE KEY-----
       MIICXAIBAAKBgQDbDkji1X+Bxv7WLI5yaFTFsWgBtLPlm7x0O9iACBycLKelOZJl
       ....
       m57VRInEsLbXpJHoPISk8Gj+JL/CGK7rIcDtPebLIEs=
    -----END RSA PRIVATE KEY-----</private-key-data>
    <certificate-data>-----BEGIN CERTIFICATE-----
       MIICvzCCAigCAQEwDQYJKoZIhvcNAQEEBQAwga0xCzAJBgNVBAYTAlVTMREwDwYD
       ....
       nSYYODyuU/pfV9V+qS+p/kwk/UKgEiwnngPEFn7v3zAzXmE=
    -----END CERTIFICATE-----</certificate-data>
  </signature-properties>
</config>

The following figure shows an XML sample for the HTTP adapter configuration when the adapter supports downloading a file.

XML sample of the HTTP adapter configuration when the adapter supports downloading a file

<config>
    <download-directory>c:\tmp</download-directory>
    <download-attachment>true</download-attachment>
</config>
Was this page helpful? Yes No Submitting... Thank you

Comments