Defining category values

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

  1. Set the text editor to UTF-encoding:
    1. Click Window > Preferences > Editors.
    2. In the properties for the editor, set Text file encoding to Other.
    3. Select UTF-8.
    4. Save your changes.
  2. Create a new file, for example mycat.txt.
  3. 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:


Feedback