Finding a Registered Web Service
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: