< Previous | Next >

Lesson 5: Create the SchedulingContract Service Contract

This content applies to version 7.5.4, or later. You can now create a simple service contract for the SchedulingService service interface; this service does not require a behavior to be created. The service contract contains parts that represent its user and provider that you can use later in the services architecture.
To create the SchedulingService service contract:
  1. In the Project Explorer view, in the contracts package, open the Main diagram.
  2. In the Palette, click Service Contract, drag the cursor below the InvoiceContract service contract, and name it SchedulingContract.
  3. In the Project Explorer view, right-click the SchedulingContract service contract; then click Add Services Modeling > Part and click Unspecified.
  4. In the diagram editor, click the new part in the SchedulingContract element.
  5. In the Properties view, name the part client, for the part name and specify the type as the SchedulingService interface.
  6. To create another part, repeat step 3 to step 5, but name this part scheduler and set its type to the SchedulingService interface. The SchedulingContract service contract should look like the following: