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.

請利用 AdminTask 物件 PolicySetManagement 群組中的下列指令和參數來自訂您的原則集配置。
  • 利用 getPolicyType 和 getBinding 指令的 -attributes 參數來檢視原則和連結配置的內容。 如果要取得屬性,請將內容名稱傳給 getPolicyType 或 getBinding 指令。
  • 利用 setPolicyType 和 setBinding 指令的 -attributes 參數來新增、更新或移除原則和連結配置中的內容。 如果要新增或更新屬性,請指定內容名稱和值。 如果屬性存在,setPolicyType 和 setBinding 指令會更新值,如果屬性不存在,會新增屬性和值。 如果要移除屬性,請將值指定為空字串 ("")。 -attributes 參數會接受內容物件。
Note: 如果 -attributes 參數提供的內容名稱或值無效,setPolicyType 和 setBinding 指令會發生失敗,且出現異常狀況。 無效的內容會在 SystemOut.log 檔中,記載為錯誤或警告。 不過,指令異常狀況不一定包含造成異常狀況之內容的詳細資訊。 當 setPolicyType 和 setBinding 指令失敗時,請檢查 SystemOut.log 檔中,是否有任何錯誤和警告訊息指出 -attributes 參數的輸入包含一或多個無效的內容。
Note: 這個主題參照一或多個應用程式伺服器日誌檔。 此外,在分散式和 IBM® i 系統上,另外也建議您可以配置伺服器來使用「高效能可延伸記載 (HPEL)」日誌和追蹤基礎架構,而不使用 SystemOut.logSystemErr.log, trace.logactivity.log 檔案。HPEL 與原生 z/OS® 記載機能也可以一起使用。如果您使用 HPEL,則可以從伺服器設定檔 bin 目錄,利用 LogViewer 指令行工具來存取您所有的日誌和追蹤資訊。請參閱有關利用 HPEL 疑難排解應用程式的資訊,以取得更多使用 HPEL 的相關資訊。
適用於轉換使用者 適用於轉換使用者: 在 WebSphere Application Server 7.0 版及更新的版本中,安全模型已加強為以網域為中心的安全模型,而不是基於伺服器的安全模型。 另外,本產品的這個版本也變更了預設廣域安全 (Cell) 層次和預設伺服器層次連結的配置。 在 WebSphere Application Server 6.1 版 Feature Pack for Web Services 中,您可以為 Cell 配置一組預設連結,也可以選擇性地為每部伺服器配置一組預設連結。在 7.0 版及更新的版本中,您可以配置一或多個一般服務提供者連結,以及一或多個一般服務用戶端連結。 在配置一般連結之後,您可以指定其中一個連結作為廣域預設連結。您也可以選擇性指定作為應用程式伺服器或安全網域預設值的一般連結。trns

為了支援混合 Cell 的環境,WebSphere Application Server 支援 7.0 版和 6.1 版連結。 一般的 Cell 層次連結專用於 7.0 版及更新的版本,應用程式特定連結保持應用程式所需要版本。 當使用者建立應用程式專用連結時,應用程式伺服器會判斷供應用程式使用所需要的連結版本。

The following sections explain the policy and binding properties to configure:

HTTPTransport policy properties

The HTTPTransport policy set can be used for HTTPS, basic authorization, compression, and binary encoding transport methods.

Configure the HTTPTransport policy by specifying the following attributes with the setPolicyType command:
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.
The following setPolicyType example command sets values for each HTTPTransport binding property:
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

Configure the HTTPTransport binding by specifying the following attributes with the setBinding command:
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.
The following setBinding example command sets values for each HTTPTransport binding property:
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]]"]')

指出主題類型的圖示 參照主題



時間戳記圖示 前次更新: July 9, 2016 11:14
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rxml_wsfphttptransport
檔名:rxml_wsfphttptransport.html