A topic namespace can optionally have topic namespace documents applied to it that define the structure of the topics that are permitted within the namespace. Use a command script to add a topic namespace document to an existing topic namespace.
To run the command, use the AdminTask object of the wsadmin scripting client.
This command is only valid when used with WebSphere® Application Server Version 6.1 and later application servers. Do not use it with earlier versions.
Command-line help is provided for service integration bus commands:
wsadmin> $AdminTask help WSNotificationCommands
wsadmin> $AdminTask help command_name
This command adds a new WS-Notification topic namespace document to an existing WS-Notification topic namespace.
None.
Create a new topic namespace document on the WS-Notification topic namespace "newTopicNamespace" created in the example from topic "Creating a new permanent WS-Notification topic namespace using the wsadmin tool".
set newTopicDoc [ $AdminTask createWSNTopicDocument $newTopicNamespace { -url http://www.example.org/instance_doc1.xml } ]Note that you must change the url parameter to point to a valid topic namespace document as defined in the WS-Topics Version 1.3 OASIS Standard.