Creating a Java or EJB Web Service for Sybase WorkSpace
PowerDesigner provides full support for creating a Java Web service for Sybase WorkSpace.
Select File > New Model to open the New Model dialog, and select Object Oriented Model in the Model Type list.
Select Java in the Object language list and select Class diagram in the Diagram list.
Click the Select Extensions button, click the IDE sub-tab, select the Sybase WorkSpace xem, and click OK to return to the New Model dialog.
Click OK to create the OOM.
Select Tools > Create Web Service Component to open the Web Service Wizard.
Type a name and a code for the component and click Next.
Select Implementation in the Web Service Type list and select one of the following in the Component Type list:
Java Web Service (JWS)
Axis EJB (Stateless Session Bean)
Click Next, select a Web service implementation class, and then click Finish.
The Web service component is created together with the implementation class and the corresponding Web method.
Double-click the implementation class in the diagram and open the Operations tab in the class property sheet.
Double-click the WebMethod created by default. The Web Service Method check box is selected. You can rename the operation if necessary.
Click the Implementation tab and enter the implementation of the Web service:
Click OK in each of the dialog boxes.
You can preview the code that will be generated for the Web service by clicking the Preview tab of the associated class or component. You can customize the Web service by editing the properties of the component.