CentraSite 10.11 | CentraSite Developer's Guide | Importing Objects Using API | Invoking Importer from Java Program | Finding Registered Web Service
 
Finding Registered Web Service
 
findWebServiceByNamespace
findWebServices
The Web Service API provides functions with which you can find a registered web service. For example:
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);
Collection services = wsa.findWebServices("MyOrganization".wsdlFile);
. . .
}
catch (Exception e)
{
// handle error
}
finally
{
jaxr.close();
}
The WebServiceAdministrator class provides the following methods: