Creating a Java or EJB Web Service for Sybase WorkSpace

PowerDesigner provides full support for creating a Java Web service for Sybase WorkSpace.

  1. Select File > New Model to open the New Model dialog, and select Object Oriented Model in the Model Type list.
  2. Select Java in the Object language list and select Class diagram in the Diagram list.
  3. 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.
  4. Click OK to create the OOM.
  5. Select Tools > Create Web Service Component to open the Web Service Wizard.
  6. Type a name and a code for the component and click Next.
  7. 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)
  8. 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.

  9. Double-click the implementation class in the diagram and open the Operations tab in the class property sheet.
  10. Double-click the WebMethod created by default. The Web Service Method check box is selected. You can rename the operation if necessary.
  11. Click the Implementation tab and enter the implementation of the Web service:


  12. 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.