You can provide a category file to describe or populate the values
in a user-defined category of a unit test UDDI registry. The file can be used
to configure or reconfigure a unit test registry, or it can be used to provide
descriptions of values in a previously deployed registry.
Store the hierarchy in a file with UTF-8 encoding using a WebSphere® editor,
with one value on each line.
You can customize the value format with
the preferences for Web Services > Private UDDI registry.
By default, each value should use the following format:
category_key#
identifier#
value_label#
parent_reference
Where:
- category key The unique name or key for the category
as a whole. The key must be unique within the registry. The maximum length
is 8 characters.
- identifier The unique identifier for the value
within the category. The identifier must be unique within the category. The
maximum length is 32 characters.
- value label The label for the value. The label
will appear in the user interface, and together with the other labels will
form the hierarchy of values that the publisher can select from. The maximum
length is 128 characters.
- parent reference A reference to the parent value,
using the parent value's identifier. If the current value has no parent (that
is, it is the root of the hierarchy), the parent reference should point to
the value's own identifier. The maximum length is 32 characters.
Example
This category value file:
food#00#Food#00
food#10#Fruit#00
food#101#Apples#10
food#102#Oranges#10
food#103#Pears#10
food#1031#Anjou#103
food#1032#Conference#103
food#1033#Bosc#103
food#104#Pomegranates#10
food#20#Vegetables#00
food#201#Carrots#20
food#202#Potatoes#20
food#203#Peas#20
food#204#Sprouts#20
Defines a category with the key "food", and the following
value hierarchy:
- Food (00)
- Fruit (10, added under 00)
- Apples (101, added under 10)
- Oranges (102, added under 10)
- Pears (103, added under 10)
- Anjou (1031, added under 103)
- Conference (1032, added under 103)
- Bosc (1033, added under 103)
- Pomegranates (104, added under 10)
- Vegetables (20, added under 00)
- Carrots (201, added under 20)
- Potatoes (202, added under 20)
- Peas (203, added under 20)
- Sprouts (204, added under 20)