Testing the Functionality of a Transformation Service

Use the Test page of the Transformation Service editor to 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.


  • Use the Test page to select instance documents as input, then test the operation to ensure it provides the correct transformation functionality.

    The Test page tests the transformation by performing an XSL transformation or Java transformation. The map is compiled and run as an XSL transformation if any of the following conditions are true. If all of the following are false, the map is compiled and run as a Java transformation.


    • The transformation service uses a schema that is NOT a message definition-based schema generated in WorkSpace.
    • The transformation service uses a user-defined extension function.
    • The transformation service contains "copy-of" links in its map.
    • The transformation service uses the name, local-name, or namespace-uri functions.
  • You can test an XSL transformation service after packaging and deployment.
  • You can test a Java transformation when the transformation service is included in a business process service.
  1. To test the design-time functionality of a transformation, 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.

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

    By default, each output document displays 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.

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

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 unsaved changes.

Related concepts
Service Binding Editors
Related tasks
Developing a Transformation Service
Related reference
Test Page

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.