HTTPTransport policy and binding properties
Use the -attributes parameter for the setPolicyType and setBinding commands to specify additional configuration information for the HTTPTransport policy and policy set binding. Application and system policy sets can use the HTTPTransport policy and binding.
- Use the -attributes parameter for the getPolicyType and getBinding commands to view the properties for your policy and binding configuration. To get an attribute, pass the property name to the getPolicyType or getBinding command.
- Use the -attributes parameter for the setPolicyType and setBinding commands to add, update, or remove properties from your policy and binding configurations. To add or update an attribute, specify the property name and value. The setPolicyType and setBinding commands update the value if the attribute exists, or adds the attribute and value if the attribute does not exist. To remove an attribute, specify the value as an empty string (""). The -attributes parameter accepts a properties object.
To support a mixed-cell environment, WebSphere Application Server supports Version 7.0 and Version 6.1 bindings. General cell-level bindings are specific to Version 7.0 and later Application-specific bindings remain at the version that the application requires. When the user creates an application-specific binding, the application server determines the required binding version to use for application.
HTTPTransport policy properties
The HTTPTransport policy set can be used for HTTPS, basic authorization, compression, and binary encoding transport methods.
- protocolVersion
- Specifies the version of HTTP to use. The valid version values are HTTP/1.1 and HTTP/1.0.
- maintainSession
- Specifies whether the HTTP session is enabled when a message is sent. The valid values are yes or no.
- chunkTransferEnc
- Specifies whether to enable chunked transfer encoding. The valid values are yes or no.
- sendExpectHeader
- Specifies whether to send an expect 100-request header. The valid values are yes or no.
- compressRequest:name
- Specifies whether to compress the request. The valid values are gzip, x-gzip, deflate, or none.
- compressResponse:name
- Specifies whether to compress the response. The valid values are gzip, x-gzip, deflate, or none.
- acceptRedirectionURL
- Specifies whether to accept URL redirection automatically. The valid values are yes or no.
- messageResendOnce
- Specifies if a message can be sent more than once. The valid values are yes or no.
- connectTimeout
- Specifies the amount of time, in seconds, before a connection times out when sending a message. Specify an integer value that is greater than zero. If a value of zero or less is specified, the connectTimeout property is set to the default value of 180 seconds. No maximum value is set for this property.
- writeTimeout
- Specifies the amount of time, in seconds, before the write time out occurs. Specify an integer value. Specify an integer value that is greater than zero. If a value of zero or less is specified, the connectTimeout property is set to the default value of 300 seconds. No maximum value is set for this property.
- readTimeout
- Specifies the amount of time, in seconds, before the read time out occurs. Specify an integer value. Specify an integer value that is greater than zero. If a value of zero or less is specified, the connectTimeout property is set to the default value of 300 seconds. No maximum value is set for this property.
- persistConnection
- Specifies whether to use a persistent connection when sending messages. Valid values are yes or no.
AdminTask.setPolicyType('[-policySet "WSHTTPS custom" -policyType HTTPTransport
-attributes "[[protocolVersion HTTP/1.1]
[sessionEnable yes][chunkTransferEnc yes][sendExpectHeader yes]
[compressRequest:name gzip][compressResponse:name
gzip][acceptRedirectionURL yes][messageResendOnce no][connectTimeout
300][writeTimeout 300]
[readTimeout 300][persistConnection yes]]"]')
HTTPTransport binding properties
- outAsyncResponseBasicAuth:userid
- Specifies the user name for basic authentication of outbound asynchronous responses.
- outAsyncResponseBasicAuth:password
- Specifies the password for basic authentication of outbound asynchronous responses.
- outAsyncResponseProxy:userid
- Specifies the user name for the outbound asynchronous service responses proxy.
- outAsyncResponseProxy:password
- Specifies the password for the outbound asynchronous service responses proxy.
- outAsyncResponseProxy:port
- Specifies the port number for the outbound asynchronous service responses proxy.
- outAsyncResponseProxy:host
- Specifies the host name for the outbound asynchronous service responses proxy.
- outRequestBasicAuth:userid
- Specifies the user name or basic authentication of outbound service requests.
- outRequestBasicAuth:password
- Specifies the password for basic authentication of outbound service requests.
- outRequestProxy:userid
- Specifies the user name for the outbound service request proxy.
- outRequestProxy:password
- Specifies the password for the outbound service request proxy.
- outRequestProxy:port
- Specifies the port number for the outbound service request proxy.
- outRequestProxy:host
- Specifies the host name for the outbound service request proxy.
AdminTask.setBinding('[-bindingLocation "" -bindingName generalCellWideBind1 -policyType
HTTPTransport
-attributes "[[outAsyncResponseBasicAuth:userid myID][outAsyncResponseBasicAuth:password
myPW][outAsyncResponseProxy:host hostname]
[outAsyncResponseProxy:port 9060][outAsyncResponseProxy:userid myID]
[outAsyncResponseProxy:password myPW]
[outRequestBasicAuth:userid myID][outRequestBasicAuth:password myPW]
[outRequestProxy:userid myID]
[outRequestProxy:password myPW][outRequestProxy:port 9061][outRequestProxy:host
hostname]]"]')