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.

  1. Set the WebSphere® editor to UTF-encoding:
    1. Click Window > Preferences and then Workbench > 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
    • 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: 

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.