CentraSite Documentation : CentraSite Administrator’s Guide : Importing Objects Using the API : Invoking an Importer from a Java Program : Removing a Registered Web Service
Removing a Registered Web Service
 
removeService
removeServices
removeServiceByID
setDeleteTargetAssocs
setRemoveReferencedImports
setRemoveWsdl
Use the functions described below to remove a registered web service and all its resources, including all associated registry objects and the WSDL file in the CentraSite repository.
You must use an instance of the JAXRAccessor class to establish a CentraSite connection before calling the removeService or removeServiceByID function. Finally, close the session by calling the close() method of JAXRAccessor.
Also before calling the removeService or removeServiceByID function, you may call setter functions, which are also described below.
The following example demonstrates how to remove a web service from CentraSite:
import com.centrasite.jaxr.JAXRAccessor;
import com.centrasite.jaxr.webservice.WebServiceAdministrator;
 
String dbURL = "http://localhost:53307/CentraSite/CentraSite";
String wsdlFile = "c:/temp/MyService.wsdl";
String user = ...;
String password = ...;

 JAXRAccessor jaxr = new JAXRAccessor(dbURL, user, password);
 
try
{
WebServiceAdministrator wsa = new WebServiceAdministrator(jaxr);
int removeCount = wsa.removeServices(wsdlFile);
}
catch (Exception e)
{
// handle error
}
finally
{
jaxr.close();
}
The WebServiceAdministrator class provides the methods shown below:
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback