CentraSite Documentation : CentraSite Administrator’s Guide : Importing Objects Using the API : Invoking an Importer from a Java Program : Finding a Registered Web Service
Finding a Registered Web Service
 
findWebServiceByNamespace
findWebServices
The Web Service API provides functions with which you can find a registered web service. The following example demonstrates this:
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(wsdlFile); // Service object coll.
. . .
}
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