Using the UDDIUnpublish tool

You can use the UDDIUnpublish tool from a command line to remove (or unpublish) a business entity or service from a public or private UDDI registry. By default, the tool unpublishes from the private registry.

To unpublish from a public registry, see Additional Properties.

Note:  If you are unpublishing to a private registry, ensure that you have started the Unit Test UDDI registry.

Command line setup

Before using the UDDIUnpublish tool, you must set up the command line as follows:

  1. From a command prompt, change to install_directory/bin.
  2. Run the following batch script:
    • Windows®:

      setupenv.bat

    • Linux®:

      . setupenv.sh  

  3. Change to the directory where you want to unpublish a business entity or business service. 

You can now unpublish a business entity or service from the registry.

Unpublishing a business entity

To unpublish a business entity, run the following in the command prompt (the order of the arguments does not matter):

  • Windows: UDDIUnpublish -business -businessName <name> [<optional arguments>]
  • Linux:   UDDIUnpublish.sh -business -businessName <name> [<optional arguments>]

See The UDDIUnpublish tool for a list of mandatory and optional arguments.

A message is returned informing you that the unpublish operation completed successfully. The unique key for the deleted business entity or is also displayed.

Unpublishing a business service

To unpublish a business service, run the following in the command prompt (the order of the arguments does not matter):

  • Windows: UDDIUnpublish -service -serviceName <name> -businessName <name> [<optional arguments>]
  • Linux: UDDIUnpublish.sh -service -serviceName <name> -businessName <name> [<optional arguments>]

See The UDDIUnpublish tool for a list of mandatory and optional arguments.

A message is returned informing you that the unpublish operation completed successfully. The unique key for the deleted business service is also displayed.


Feedback