IMS Connect サービス イメージを記録する方法
lisa.vse.protocol.ims.response.includes.llll=true
lisa.vse.ims.connect.llzz.request=true
lisa.vse.ims.connect.llzz.response=true
lisa.vse.copybook.unknown.passthrough=true
これにより、確認応答メッセージ(ペイロード データを含まない)を表すバイナリ応答では、Copybook 処理をバイパスすることができます。
レコーダの次の手順が開きます。
クライアントが DevTest と通信するポートを定義します。
サーバが実行されているターゲット ホストの名前または IP アドレスを定義します。
サーバがリスンするターゲット ポート番号を定義します。 プロキシ パススルー スタイルを選択する場合は、このフィールドを空白のままにします。
デフォルト: 80 (HTTP)および 443 (HTTPS)
以下のいずれかを定義します。
サポートされるこれらの 160 バイトおよび 80 バイト ヘッダのフィールド定義は、LISA_HOME ディレクトリの ims.format ファイルで提供されています。
デフォルトで DevTest に含まれている IMS Connect サポートを使用するには、このフィールドを空白のままにします。
仮想化されるアプリケーションによって、データがどのようにエンコードされるか定義します。
値
このアプリケーションのホストとポートが、レコーダのホストとポート(通常は localhost:8001)であることを確認します。
データ プロトコル ウィンドウが表示されます。
デフォルトでは、TransactionCode ヘッダ フィールド(存在する場合)は、要求操作として設定されます。 また、TransactionCode、DestinationId、および ClientId の各フィールドが形式ファイル定義に存在する場合、これらが引数として追加されます。
会話スタータ ウィンドウが表示されます。
サービス イメージ エディタに IMS Connect サービス イメージが表示されます。
IMS Connect のカスタム形式ファイル
テスト中のシステムが DevTest がデフォルトでサポートするものとは異なる要求 ヘッダを使用する場合は、レコーディングの前に以下の手順に従います。
#-------------------------------------------------------------------------------------
# The IMS™ request message (IRM) header contains a 28-byte fixed-format
# section that is common to all messages from all IMS Connect client applications
# that communicate with IMS TM.
#-------------------------------------------------------------------------------------
RequestHeaderCommon {
LLLL int; #total message length IRM + user data
IRMFixedHeader {
LL short; #IRM_LEN, total length of the header segment including user header portion
ZZ byte; #IRM_ARCH
Flag0 byte; #IRM_F0
UserExitId string(8); #IRM_ID
NakReasonCode byte(2); #IRM_NAK_RSNCDE
Reserved1 byte(2); #IRM_RES1
MessageType byte; #IRM_MessageType
WaitTime byte; #IRM_TIMER
SocketConnectionType byte; #IRM_SOCT
EncodingSchema byte; #IRM_ES
ClientId byte(8); #IRM_CLIENTID
}
}
#-------------------------------------------------------------------------------------
# Format of user portion of IRM some custom header
#
# Following the 4-byte length field and the 28-byte fixed portion of the
# IMS™ request message (IRM) header in IMS Connect client input messages,
# user-written client applications can include a user-defined section in the IRM.
#
#-------------------------------------------------------------------------------------
RequestUserHeader {
MyFlag1 byte;
MyFlag2 byte;
MyFlag3 byte;
MyFlag4 byte;
TransactionCode string(8);
DestinationId string(8);
LogicalTerminal string(8);
Miscellaneous byte(20);
}
#-------------------------------------------------------------------------------------
# Format of data segments of request message
#-------------------------------------------------------------------------------------
RequestPayloadSegment {
LL short;
ZZ byte(2);
Data byte(LL:inclusive);
}
#-------------------------------------------------------------------------------------
# Format of header for response message. Some responses will have it, some won't
#-------------------------------------------------------------------------------------
ResponseMessageHeader {
LLLL int; # followed by multiple ResponsePayloadSegment
}
#-------------------------------------------------------------------------------------
# Format of data segments of request message
#-------------------------------------------------------------------------------------
ResponsePayloadSegment {
LL short;
ZZ byte(2);
Data byte(LL:inclusive);
}
ファイルを作成して Data フォルダに保存すると、レコーダの[IMS 形式ファイル]フィールドに表示されます。 デフォルト以外の要求 ヘッダを使用するアプリケーションの形式ファイルを選択できます。
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|