Generating the Java or EJB Web Service for Sybase WorkSpace

PowerDesigner can generate all the files that you need to work with to define the Web service in the Workspace Java Service Editor.

  1. Select Language > Generate Java Code to open the Generation dialog.
  2. Enter a directory in which to generate the files, and specify whether you want to perform a model check (see Checking an OOM).
  3. Ensure that the Sybase WorkSpace IDE is selected on the Targets tab.
  4. Click OK to begin generation.
    • A svc_java or svc_ejb file that defines the Web service

    • A .java file for the implementation of the Web service

    • A .project file for creating a Java project if it does not exist

    • A .classpath file for defining Java libraries in a Java project

    When you generate using the PowerDesigner Eclipse plugin an Eclipse project will be created or, if you are generating to an existing project, the project will be refreshed to show the new files.

  5. In Workspace, right-click the .svc_java file in the Navigator window and select Open with > Java Service Editor.
  6. Click the Interface sub-tab and continue with the implementation of the service.

    For more information on the Java Service Editor, see your Sybase Workspace documentation.