To run the transformations, you must import the PiggyBank Transformations
and Code sample into your workspace, open the Modeling perspective, and invoke
the transformations.
- Create the target ejb project.
- From the File menu, click .
- Select EJB Project and click Next.
- Specify ItsoAdEJB as the project name.
- Select WebSphere Application Server as
the target runtime.
- Select the Add Project to an EAR check
box, specify ItsoAdEAR as the EAR project name, and
click Next twice.
- Clear the Create an EJB Client JAR module to hold
the client interfaces and classes check box and click Finish.
- Create the transformation configuration file.
- From the File menu, click .
- Specify UMLtoItsoAdEJB as the name, select
the UML to EJB checkbox, type /ItsoAdEJB as
the file destination and click Next.
- In the Selected Source list, expand ItsoAdModel and
click PiggyBankImplementationDesigns.
- In the Select Target list, select ItsoAdEJB,
and click Finish.
- Run the transformations.
- In the Project Explorer view, expand the ItsoAdModel project
and select UMLtoItsoAdEJB.tc which you just created.
- Right-click UMLtoItsoAdEJB.tc; then click .
- Create the dynamic Web project.
- From the File menu, click .
- Select Dynamic web project and click Next.
- SpecifyItsoAdWebService as the project
name.
- Select WebSphere Application Server as
the target runtime.
- Select the Add Project to an EAR check
box, specify ItsoAdCityBankEAR as the EAR project name,
and click Finish.
- Create the WSDL transformation configuration file.
- From the File menu, click the .
- Specify UMLtoItsoAdWebService as the
name, select UML to WSDL, specify /ItsoAdEJB as
the file destination, and click Next.
- In the Selected Source list, expand ItsoAdModel and
select the PiggyBankImplementationDesigns/itso.ad.citybank/CityBank component.
- In the Select Target list, select ItsoAdWebService/WebContent,
and click Next.
- Select WRAPPED-DOCUMENT_LITERAL and click Finish.
- Run the WSDL transformations.
- In the Project Explorer view, expand the ItsoAdModel project
and click UMLtoItsoAdEJB.tc which you just created.
- Right-click the UMLtoItsoAdWebService.tc;
then click .
- Generate the client code from the WSDL file.
- In the Project Explorer, expand PiggyBankImplementationDesigns,
then right-click itso\ad\citybank\cityBank.wsdl and
select .
- On the Web Services page, adjust the slider
to Develop Client and click Finish to
generate the client code.