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.
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 your 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. See Generating Objects from a Message Definition.
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.
To test the design-time functionality of a transformation:
Select the Test tab in the Transformation Service Editor.
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.
If you need to create or edit instance documents, use the XML editor or a text editor.
Click Test.
Test results contains a tab for the output document of each of your target schemas. Inspect each output document.
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.
Click Save to save the contents of the selected output tab.
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
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com