webMethods and Intelligent Business Operations 10.2 | CentraSite User's Guide | Asset Management | Managing Assets through Command Line Interface | Importing an Asset | Importing Web Service
 
Importing Web Service
Pre-requisites:
To import a Web Service through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named ImportWSDL for this purpose.
* To import a Web Service
*Run the command ImportWSDL.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>ImportWSDL [-h <host>] [-p <port>] [-dburl <dburl>] -user <user> -password <pwd> -w <wsdlFile> [-accessuser <u>] [-accesspassword <p>] [-o <organization>] [-project <name>] [-name <name>] [-attach <id>] [-v <user-version>] [-reuse] [-help] [-forcenew] [-createversion]
The input parameters and options are:
Parameter
Description
-h <host>
The host name or IP address of the computer where the CentraSite registry or repository component is running.
If you omit this parameter, the importer assumes that the registry or repository is running on localhost.
-p <port>
The port number on which the CentraSite registry or repository is configured to listen for incoming requests.
If you omit this parameter, the importer assumes that the registry or repository is listening on the default port, 53307.
-dburl <dburl>
(Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
Note: If the registry or repository is running on a different machine and port number, you can use this parameter to specify its location instead of using the individual -h and -p parameters. (If you specify the -dburl parameter with the -h and -p parameters, the -h and -p parameters is ignored.)
-user <user>
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
-password <pwd>
The password for the registered CentraSite user identified by the parameter -user.
-w <wsdlFile>
The absolute or relative path to the WSDL file that you want to import. If relative, the path should be relative to the location from where the command is executed.
-accessuser <u>
(Optional). The username for accessing the WSDL file.
-accesspassword <p>
(Optional). The password of the user identified by the parameter -accessuser for accessing the WSDL file.
-o <organization>
(Optional). The name of the organization into which you want to import the web service. If the organization name contains a space, enclose the name in double-quotes.
-project <name>
(Optional). The project name of an existing project for Web service.
-name <name>
(Optional). The display name of the abstract service.
-attach <id>
(Optional). Attach the WSDL to the existing service with an unique identifier.
-v <user-version>
(Optional). The user-defined version number for the service.
-reuse
(Optional). Reuse the imported files instead of overwriting any data.
-help
(Optional). Display the full description of ImportWSDL command (with detailed parameters and options description).
-forcenew
(Optional). Force creating new asset instance of the Web service instead of updating an existing service.
-createversion
(Optional). Create a new version of existing service before the import.
Example (all in one line):
The command for importing a WSDL into CentraSite running on localhost with an administrator account INTERNAL\Admin and password AdminPW would be:
C:\SoftwareAG\CentraSite\utilities>ImportWSDL -dburl http://localhost:53307/CentraSite/CentraSite -user INTERNAL\Admin -password AdminPW -w c:\MyWsdl.wsdl

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release