Creating a service (IDL code)
You can create a Service through an Internal Component Diagram, or from a Component, Connector or Port Type.
To create a service through an internal component diagram:
1. Open the Internal Component Diagram on which you want to create the Service.
2. On the diagram's tab, click the
Service button.
3. On the diagram, click within the Component or Component Part on which you want to create the Service.
Note that when you create a Service on a Component Part, the Service is created as a child of the Component Part's type, that is, a Component.
4. From the Type Selector dialog, select or create an Interface to use as a type:
◦ To use an existing Interface: select the Select an Existing Type option, and then select the Interface you want to use in the Existing Type browser.
◦ To create a new Interface: select the Create a New Type option, and then in the Name box type the name of the Interface that will be created.
5. Click OK.
6. Type the name of the Service, and then press the Enter key.
To create a service from a component, connector or port type:
1. In the Packages pane, locate the Component, Connector or Port Type that is to own the Service.
2. Right-click the Component, Component or Port Type, point to New, and then click Service.
3. From the Type Selector dialog, select or create an Interface to use as a type:
◦ To use an existing Interface: select the Select an Existing Type option, and then select the Interface you want to use in the Existing Type browser.
◦ To create a new Interface: select the Create a New Type option, and then in the Name box type the name of the Interface that will be created.
4. Click OK.
5. Type the name of the Service, and then press the Enter key.