Creating a Transformation Service

To transform content from one form to another, create a transformation service using the New Service wizard.

To create a transformation service:

  1. In the Service Development perspective, select File|New|Service from the main menu bar.

    The Create a Service dialog opens.

    Note

    For alternate ways to access the New Service wizard, see Methods of Accessing a New Wizard.

  2. Select Transformation Service and click Next.

  3. Select the project that will use this service.

  4. Enter a unique, descriptive name for the service in the File name field.

  5. Click Next.

    The Service Summary page displays the information collected from previous wizard pages.

  6. (Optional) In the Service Information pane, complete the following:

    Service information

    FieldDescription

    Name

    Edit the service name. The wizard automatically enters the same name as the service file in your project. It is recommended that you keep the names consistent for easy reference in the future.

    Note

    Sybase WorkSpace does not support the use of the # character in a service file name.

    Category

    Enter a new category or select an existing category from the drop-down list. Grouping services into categories is helpful when you create multiple services.

    Description

    Enter an internal description, such as an explanation of how and where this service is used. You can also add notes for other developers who may implement this service.

  7. (Optional) To select one or more source or target content models (XSD, WSDL, Java service, EJB service, or database service) for the transformation service, click Next.

    The Select Schemas page appears.

    Note

    To examine or edit a content model before you add it, right-click the file in your project and select Open With|Sample XML Schema Editor.

  8. To select source or target content models, select Content Models and then click Add Schema.

    The Schema Browser dialog appears. Your project folder displays in the left pane.

  9. Navigate to and select a content model; for example, OrderSummary.xsd.

    Its elements and attributes appear in the right pane.

    Note

    You must select an element before you can select another content model in the left pane.

  10. In the schema folder in the right pane, select an element to be used as one of the operation parameters of the service.

  11. From the left pane, select another content model or, if finished selecting elements, click OK.

  12. From the Select Schemas page, select your source schemas and target schemas.

  13. Click Next.

  14. From the Summary page, review the transformation service details. Click Back to edit the information.

  15. Click Finish.

    The Transformation Service editor opens.

Note

Do not manually edit the TransformationService.map file because the Sybase WorkSpace parser relies on machine-generated formatting in the file, including whitespace conventions and line breaks.

Developing a Transformation Service

Transformation Service

WorkSpace Navigator

Editors

Naming Conventions

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com