ページの先頭行へ戻る
Interstage Application Server アプリケーション作成ガイド(CORBAサービス編)

6.1.1 アプリケーションのインタフェース定義(IDL)の記述

  サーバアプリケーションが提供するインタフェースを定義するために、IDLファイルを作成します。IDLファイルの書式については“IDL定義”を参照してください。

module ODdemo{
  interface calculator{
    exception ZEROPARAM {};
    struct result {
      long    add_result;
      long    subtract_result;
      long    multiple_result;
      float   divide_result;
    };

    result calculate( in long a, in long b )
        raises( ZEROPARAM );
  };
};