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
- 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.
- In the browser, right‑click
the interface
block or class and select Features.
- In the Stereotype field, select <<New> and
enter serviceContract. Click OK.
- Create the block or class that realizes
the serviceContract. Apply the stereotype <<serviceProvider>> to
it.
- Add a standard port to the <<serviceProvider>>.
Set the port to provide the service contract interface. Stereotype
this port <<servicePort>>.
- Define all the data
types needed
by the interface.
- Set the stereotype
on the package to <<servicePackage>>.