You can
use a category value file to define a hierarchy of values
for a category in a unit test UDDI registry. The values can be used
to validate
incoming values if they are restricted, and to provide lists of possible
values
to users of the registry.
Procedure
- Set the
text editor to UTF-encoding:
- Click Window
> Preferences > Editors.
- In
the properties for the editor, set Text file
encoding to Other.
- Select UTF-8.
- Save your
changes.
- Create a new
file, for example mycat.txt.
- Add a line for each value in the hierarchy. You can
set the format of the values in the preferences forWeb
Services
> Scenario Defaults. By default, each line should consist
of the
following, separated by #:
- key for the category (deprecated
- only used for version 5.1 registries)
- ID number that uniquely
identifies the value
- label that will appear in user interfaces
for the value
- reference number that points to the parent value
in the hierarchy
Define the root of the value hierarchy on
the first line, and set its
reference number to point to itself.
Results
Example
This
category value file:
00#Food#00
10#Fruit#00
101#Apples#10
Defines a category with the following value hierarchy:
- Fruit (10, added under 00)
- Apples (101, added under 10)