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.
- Set the WebSphere® editor to UTF-encoding:
- Click Window > Preferences and then
Workbench > 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
- 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.
Example
This category value file:
food#00#Food#00
food#10#Fruit#00
food#101#Apples#10
Defines a category with the key "food", and the following
value hierarchy:
- Food (00)
- Fruit (10, added under 00)
- Apples (101, added under 10)