WebSphere Application Server Network Deployment, Version 6.0.x   
             オペレーティング・システム: AIX , HP-UX, Linux, Solaris, Windows

             目次と検索結果のパーソナライズ化

wsadmin ツールを使用した追加 HTTP トランスポート・プロパティーの構成

このトピックでは、wsadmin ツールによる追加 HTTP トランスポート・プロパティーの構成方法について説明します。

始める前に

WebSphere Application Server の wsadmin ツールは、 スクリプトを実行する機能を提供します。wsadmin ツールを使用して、 WebSphere Application Server システムのほか、構成、アプリケーション・デプロイメント、 およびサーバーのランタイム操作も管理することができます。WebSphere Application Server では、Jacl および Jython スクリプト言語のみをサポートしています。 wsadmin ツール・オプションについて詳しくは、 AdminApp オブジェクトの install、installInteractive、 edit、editInteractive、update、および updateInteractive コマンドのオプションを参照してください。

このタスクについて

この作業は、別の Web サービスに対するクライアントとして機能する Web サービスに、 追加 HTTP トランスポート・プロパティーを構成する 3 つの方法のうちの 1 つです次の方法でも、 追加 HTTP トランスポート・プロパティーを構成できます。

Java API XML ベース・リモート・プロシージャー・コール (JAX-RPC) プログラミング・モデル を使用してプロパティーをプログラマチックに構成する場合は、 Web サービス: 学習用リソースで 入手できる JAX-RPC 仕様を参照してください。

構成できる次のプロパティーの詳細については、 Web サービス・アプリケーションの 追加 HTTP トランスポート・プロパティーを参照してください。
  • com.ibm.websphere.webservices.http.requestContentEncoding
  • com.ibm.websphere.webservices.http.responseContentEncoding
  • com.ibm.websphere.webservices.http.connectionKeepAlive
  • com.ibm.websphere.webservices.http.requestResendEnabled
  • http.proxyHost
  • http.proxyPort
  • https.proxyHost
  • https.proxyPort

これらの追加プロパティーは、HTTP プロトコルを使用する Web サービス・アプリケーションに 構成します。これらのプロパティーは、HTTP 要求、HTTP 応答、および HTTP 接続パーシスタンスのメッセージのコンテンツ・エンコード、および読み取りタイムアウトで java.net.ConnectException エラー が発生した後に再送信される HTTP 要求の振る舞いに影響を与えます。

この作業セクションの次の ステップに従って、wsadmin ツールを使用して追加 HTTP プロパティーを構成します。

プロシージャー

  1. スクリプト・コマンドを起動します
  2. wsadmin コマンド・プロンプトで、コマンド構文を入力します。 install、installInteractive、edit、editInteractive、update、および updateInteractive コマンド を使用できます。
  3. com.ibm.websphere.webservices.http.responseContentEncoding プロパティーを 構成する場合は、WebServicesServerCustomProperty コマンド・オプションを使用します。
  4. WebServicesClientCustomProperty コマンド・オプションを使用して 他のすべてのプロパティーを構成します。
  5. $AdminConfig save コマンドを使用して構成変更を保管します。

結果

Web サービス・アプリケーションに HTTP トランスポート・プロパティーを構成しました。

以下に、Jython スクリプト構文の例を示します。
AdminApp.edit ( 'PlantsByWebSphere', '[ -WebServicesClientCustomProperty [[PlantsByWebSphere.war ""
service/FrontGate_SEIService FrontGate http.proxyHost+http.proxyPort myhost+80]]]')
AdminConfig.save()
AdminApp.edit ( 'WebServicesSamples', '[ -WebServicesServerCustomProperty
[[AddressBookW2JE.jarAddressBookService AddressBook http.proxyHost+http.proxyPort myhost+80]]]') 
AdminConfig.save()
以下に、Jacl スクリプト構文の例を示します。
$AdminApp edit PlantsByWebSphere {  -WebServicesClientCustomProperty {{PlantsByWebSphere.war {}
service/FrontGate_SEIService FrontGate  http.proxyHost+http.proxyPort myhost+80 }}} 
$AdminConfig save

$AdminApp edit WebServicesSamples {-WebServicesServerCustomProperty {{AddressBookW2JE.jar
AddressBookService AddressBook http.proxyHost+http.proxyPort myhost+80}}}
$AdminConfig save
これらの例を edit から install に変換するには、 .ear を追加してファイル名を作成し、-usedefaultbindings-deployejb などの デプロイメント用の特別なキーワードを追加します。
タスク・トピック    

ご利用条件 | フィードバック

最終更新: Jan 21, 2008 10:13:28 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/txml_configaddhttppropertieswsadmin.html