deleteWSNTopicDocument command

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 the deleteWSNTopicDocument command to delete a WS-Notification topic namespace document and the associated resources.

You can delete a WS-Notification topic namespace document by using the wsadmin tool as described in this topic, or by using the administrative console.

To run the command, use the AdminTask object of the wsadmin scripting client.

[IBM i][IBM i]The wsadmin scripting client is run from Qshell.

Command-line help is provided for service integration bus commands:
  • For a list of the available WS-Notification commands, plus a brief description of each command, enter the following command at the wsadmin prompt:

    print AdminTask.help('WSNotificationCommands')

  • For overview help on a given command, enter the following command at the wsadmin prompt:

    print AdminTask.help('command_name')

After using the command, save your changes to the master configuration by using the following command:

AdminConfig.save()

Purpose

This command removes the XML file associated with the WS-Notification topic namespace document.

Target object

WSNTopicDocument and associated objects.

Required parameters

None.

Conditional parameters

None.

Optional parameters

None.

Example

Delete the topic namespace document newTopicDoc created in the example from the topic about applying a WS-Notification topic namespace document by using the wsadmin tool:
  • Using Jython:
    AdminTask.deleteWSNTopicDocument(newTopicDoc)
  • Using Jacl:
    $AdminTask deleteWSNTopicDocument $newTopicDoc