Creating service contracts to export as WSDL

In order to create a service contract to export as a WSDL file, you must assign the set of NetCentric stereotypes to the service package in your IBM® Rational® Rhapsody® project.

About this task

To create a service contract to export as WSDL:

Procedure

  1. In a Rational Rhapsody NetCentric project, define an interface block or class. This interface contains the methods that define the service that is called by the service consumer.
  2. In the browser, right‑click the interface block or class and select Features.
  3. In the Stereotype field, select <<New> and enter serviceContract. Click OK.
  4. Create the block or class that realizes the serviceContract. Apply the stereotype <<serviceProvider>> to it.
  5. Add a standard port to the <<serviceProvider>>. Set the port to provide the service contract interface. Stereotype this port <<servicePort>>.
  6. Define all the data types needed by the interface.
  7. Set the stereotype on the package to <<servicePackage>>.

Feedback