CentraSite Documentation : CentraSite Administrator’s Guide : Importing Objects Using the API : Invoking an Importer from a Java Class : Executing the Script File That Invokes an Importer : Importing an XML Service
Importing an XML Service
To import an XML Service, run your importer script file with the following input parameters:
yourScriptFile -s xmlFileURI -n serviceName -e endpointURL -m httpMethods -dbuser yourCSUserID -dbpassword yourPassword
Example:
myScript -s http://fs02hq/xml/myService.xsd -n myXMLService -e http://appsvr02:53307/myService -m GET PUT -dbuser jcambrose -dbpassword j45Hk19a
The input parameters are:
Parameter
Description
-s xsdFile
Required. The absolute or relative path to the schema file from which the XML service is created. If relative, the path should be relative to the location from where the command is executed.
-n serviceName
Required. The name that is to be assigned to the service.
-e endpointURL
Required. The URL where the service is deployed. (The access point for the service.)
-m httpMethods
Required. The HTTP access methods that the service supports. Valid values are: GET, POST, PUT, DELETE. If the service supports multiple methods, list the methods separated by spaces (for example, -m GET PUT DELETE).
-dbuser userID
The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role.
-dbpassword password
The password for the registered CentraSite user identified by the parameter -user.
-dbhost hostName
The host name or IP address of the computer where the CentraSite registry/repository component is running.
If you omit this parameter, the importer assumes that the registry/repository is running on localhost.
-dbport portNumber
The port number on which the CentraSite registry/repository is configured to listen for incoming requests.
If you omit this parameter, the importer assumes that the registry/repository is listening on the default port, 53307.
-suser xsdFileUser
The user ID that is to be used if the XSD file (specified in the -s parameter) resides on a secure server and the importer is required to provide a user ID and password to access it.
-spassword xsdFilePassword
The password for the user account in -suser.
-noover
Do not overwrite existing imported XML Schemas that exist in the registry.
-desc description
The description that is to be assigned to the XML Service.
If you omit this parameter, the service description will be empty.
-ver versionID
The version identifier that is to be assigned to the XML Service. (This is the user-defined identifier, not the system-assigned version number.)
If you omit this parameter, the version identifier will be set to 1.0.
-porg providingOrg
The name of the organization that is to be designated as the providing organization for this service.
If you omit this parameter, the providing organization will be set to the Default Organization.
-sorg submittingOrg
The name of the organization to which this service is to be added.
If you omit this parameter, the service will be added to the Default Organization.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback