Вы находитесь на странице: 1из 7

WTX Quick Start Training

LAB 2

Importing an XML Schema (XSD)


In this lab well be using the following materials:
WTX Version(s):

v8.4

Meta data:

ansi5010_authorization_canonical.xsd,
pre_auth.xsd

Description:

The first step in building a WTX interface is to determine your input and output structures. Many
times well receive a file containing metadata that can be imported directly into WTX saving
many hours of development time.
A common example of this is receiving an XSD. The steps below outline how to import an XSD
into the WTX Type Tree Designer.

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

Steps
1. Below is the XSD well be importing into WTX to create a Type Tree:

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

2. In order to import the XSD a good first step is to put the XSD into the workspace folder of the
project where you would like to use the Type Tree.

3. Refresh the project. Now we can see that the files, like this XSD, have been copied to the project:

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

4. Now that we have an XSD in our project, we can import the tree to build a Type Tree for use in
our map:

5. A window will appear allowing you to search for your XSD file. Find the file by clicking the ellipses
() and select the XSD:

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

6. The next window will give you some options. For this class well use the Classic XSD importer vs.
the Xerces. The Xerces option will give your tree a different look, but will achieve the same goal.
The downside of using this option is that the XSD may be needed at runtime.

7. Choose the project where the tree will be needed. Our project is named WTX_Demo:

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

8. We should see the window below showing that our XSD import successfully created a Type Tree:

9. A final window will ask if youd like to view the newly created Type Tree:

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

NOTE: Theres an alternative to importing an XSD. You can simply call the XSD natively by using it
instead of a tree. We can demonstrate this technique when we create a map and point it to our XSD
Tree.

Now You Try!


10. Follow these same steps to import the schema named pre_auth.xsd into WTX to create a type
tree for map. The pre_auth.mtt tree will be used in the next lab.

2013 Copyright DeBruin Consulting. Do not reproduce. Not for distribution.

Вам также может понравиться