Testing the Functionality of a Transformation Service

Using the Test page in the Transformation Service Editor, you can test the functionality of a transformation service at design time, prior to packaging. The Test page tests transformations, including transformations that use custom wire formats.

To test the design-time functionality of a transformation:

  1. Select the Test tab in the Transformation Service Editor.

  2. Select instance documents for each source schema defined as an operation parameter in your service. An instance document can be specified on the Web (URL), in your local Sybase project, or elsewhere in your file system.

    • Instance documents must be XML for an XSL transformation.

    • Instance documents must be custom wire format for Java transformations.

  3. If you need to create or edit instance documents, use the XML editor or a text editor.

  4. Click Test.

    Test results contains a tab for the output document of each of your target schemas. Inspect each output document.

    Note

    By default, each output document is displayed in XML format or custom wire format. To display each output document in a tree format, change the Test Page Output Format option in Preferences. See Setting Transformation Editor Preferences.

  5. Click Save to save the contents of the selected output tab.

Note

You can repeat the test process, updating your transformation service with each test cycle. Modify your transformation service by returning to the appropriate pages of the Transformation Service editor, making changes, and saving the transformation service. You will be unable to run a test of the transformation service if the service contains changes that have not been saved.

Developing a Transformation Service

Validating an XML Document Instance

Developing a Message Definition

Transformation Service

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