You can use the UDDIUnublish tool from a command line to
remove a business service or entity from a UDDI registry. Once you
have set up your command line, you can use the following syntax and
arguments to run the tool:
Syntax
To unpublish a business entity:
- Windows: UDDIUnpublish
-business -businessName <name> [<optional arguments>]
- Linux: UDDIUnpublish.sh
-business -businessName <name> [<optional arguments>]
To unpublish a business service:
- Windows: UDDIUnpublish
-service -serviceName <name> -businessName <name> [<optional
arguments>]
- Linux: UDDIUnpublish.sh
-service -serviceName <name> -businessName <name> [<optional
arguments>]
Arguments
Business entity
Mandatory
arguments:
- -business
- Specifies that a business entity is to be removed from the registry.
- -businessName <name>
- Specifies the human readable name of the business. Enclose <name>
in quotes if it includes any spaces.
Optional arguments:
- -inquiryURL <Inquiry API URL>
- Sets the inquiry URL for the UDDI registry. If this argument
is not specified, the default is http://localhost:6080/uddisoap/inquiryapi.
- Note: If you are using the Unit
Test UDDI registry with the default setting, set -inquiryURL to http://localhost:9080/uddisoap/inquiryapi.
- -publishURL <Publish API URL>
- Sets the publish URL for the UDDI registry. If this argument is
not specified, the default is https://localhost:6443/uddisoap/publishapi.
- Note: If you are using the Unit
Test UDDI registry with the default setting, set -publishURL to http://localhost:9080/uddisoap/publishapi.
- -businessKey <key>
- Specifies the unique business key for the business that was generated
by the UDDI Registry when the business was first published. This option
becomes mandatory if an unpublish attempt is made on a business whose
name occurs more than once in the registry. If a failure message is
returned specifying the number of businesses that exist with the specified
business name together with their unique keys. You should then retry
the command with this argument.
- -username <name>
- Specifies a user name to pass to the private UDDI registry.
- -password <password>
- Specifies the UDDI Registry password for the supplied user name.
- -uddiprops <location of properties file>
- Specifies a conventional Java™ properties
file containing name value pairs separated by an equal sign. See Additional properties.
- -help
- Displays the help information.
Business service
Mandatory arguments:
- -service
- Specifies that a business service is to be removed from the registry.
- -serviceName <name>
- Specifies the human readable name of the service. Enclose <name>
in quotes if it includes any spaces.
- -businessName <name>
- Specifies the human readable name of the business entity that
contains the specified service. Enclose <name> in quotes if it
includes any spaces.
Optional arguments:
- -inquiryURL<Inquiry API URL>
- Sets the inquiry URL for the UDDI registry. If this argument
is not specified, the default is http://localhost:6080/uddisoap/inquiryapi.
- Note: If you are using the Unit
Test UDDI registry with the default settings, set -inquiryURL to http://localhost:9080/uddisoap/inquiryapi.
- -publishURL <Publish API URL>
- Sets the publish URL for the UDDI registry. If this argument is
not specified, the default is https://localhost:6443/uddisoap/publishapi.
- Note: If you are using the Unit
Test UDDI registry with the default settings, set -publishURL to http://localhost:9080/uddisoap/publishapi.
- -businessKey <key>
- Specifies the unique business key for the business entity that
contains the service to be deleted. This becomes mandatory if an unpublish
attempt is made on a business service that belongs to a named service
that has multiple instances in the registry. In that event the business
name alone is not sufficient to identify the container business. A
failure message is returned specifying the number of businesses that
exist with the specified business entity name together with their
unique keys. You should then retry the command with this argument.
- -serviceKey <key>
- Specifies the unique service key for the service that was generated
by the UDDI Registry when the service was first published. This becomes
mandatory if an unpublish attempt is made on a business service whose
name occurs more than once in the registry. If this is the case, a
failure message is returned specifying the number of business services
that exist with the specified service name together with their unique
keys. You should then retry the command with this argument.
- -removeTModels
- Specifies that that the tModels and binding templates associated
with the service are also to be removed from the registry.
- - username <name>
- Specifies a user name to pass to the private UDDI registry.
- -password <password>
- Specifies the UDDI registry password for the supplied username.
- -uddiprops <location of properties file>
- Specifies a conventional Java properties
file containing name value pairs separated by an equal sign. See Additional properties.
- -help
- Displays the help information.
Additional properties
With
the -uddiprops argument of UDDIUnpublish,
you can specify the location of a Java properties
file that contains additional input information.
The following
properties are used by UDDIUnpublish:
| Property |
Purpose |
| wdsk.uddi.publish.url |
Overrides the URL to the -publishURL of the remote UDDI registry.
Unless this property is set, the tool will publish to the private
registry. |
| wdsk.uddi.inquiry.url |
Overrides the URL to the -inquiryURL of the remote UDDI registry.
Unless this property is set, the tool will send inquiries to the private
registry. |