クライアント・アプリケーションでは、WS-ReliableMessaging シーケンスをプログラマチックに制御することができます。 これらのコード・フラグメントを、 シーケンスを終了するための高信頼性メッセージングのクライアント・アプリケーションをコード化するためのガイダンスとして使用してください。
クライアント・アプリケーションによって、信頼性の高いメッセージングのシーケンスをプログラマチックに制御するためには、WSRMSequenceManager インスタンスにアクセスする必要があります。. この方法に関する情報とコーディング例については、WS-ReliableMessaging シーケンスのプログラマチックな制御 を参照してください。
シーケンスの終了の完全な仕様について詳しくは、WS-ReliableMessaging: サポートされる仕様と標準 を参照してください。
WS-ReliableMessaging シーケンスを終了するには、WSRMSequenceManager で以下のメソッドを使用します。
/** * Terminates Web services reliable messaging session from this application to * the endpoint url specified. * * Throws a WSRMSequenceTerminatedException when the session between this application * and the target endpoint has already been terminated. * * Throws WSRMSequenceUnknownException exception when either reliable messaging is not engaged to * the specified endpoint url or the sequence has previously been terminated and removed. * * @param clientObject The JAX-WS Dispatch instance, or the Dynamic Proxy client instance. * @param endPointUri The target endpoint url * @throws WSRMNotEnabledException * * @throws WSRMSequenceTerminatedException * @throws WSRMSequenceUnknownException */ public void terminateSequence(Object clientObject, QName portQName, String endPointUri) throws WSRMNotEnabledException;