Generating an IDL File
You can obtain an IDL file by:
- Using the CORBA Simple IDL template in the New From
Template wizard to create an IDL file containing an interface
declaration using the name that you supplied for the IDL file. You
must add the rest of the file's content manually in the Source
Editor.
- Using the CORBA Empty IDL template in the New From
Template wizard to create a new IDL file. You then have the option of
going through the IDL wizard (from within the New From
Template wizard) to add content to the file or
importing an IDL file from the interface repository.
To generate an IDL file from the New From Template wizard:
- Choose File
New to open the New From
Template wizard.
- Expand the CORBA node and select Empty. Click Next to proceed.
- Type the name of your IDL file in the Name text field and a
destination package name in the Package text field. Click Next.
- Select IDL wizard as the means by which you want to generate an
IDL file.
Selecting IDL wizard creates a new IDL file with an IDL editor. Selecting
Interface Repository imports an existing IDL from the interface
repository (IR).
- Define the contents of your IDL file.
- Select an operation from the combo box and click Create. The IDL
file must contain at least an interface declaration.
- Type the appropriate information for the operation in the dialog
box that opens and click OK.
- Continue adding operations as needed. Use the Remove, Edit, Up,
and Down buttons to edit the context hierarchy of your IDL file. When
done, click Next.
- Click Continue with CORBA Wizard to continue developing the CORBA
application or click Finish to create the IDL file.
To import an IDL from the interface repository:
- Choose File
New to open the New From
Template wizard.
- Expand the CORBA node and select Empty. Click Next to proceed.
- Type the name of your IDL file in the Name text field and a
destination package name in the Package text field. Click Next.
- Select Interface Repository and click Next.
- Click Add IR.
- Provide the name of the interface repository from which you are
importing the IDL file from, and type either the URL of the
repository or the IOR string. The string information must be provided
as one continuous string.
- Click OK in the CORBA Panel dialog box.
- Click Refresh to redisplay the repository hierarchy in the display
pane. Click Next.
- Click Continue with CORBA Wizard to continue developing the CORBA
application or click Finish to create the IDL file.
Legal Notices