API Management 10.4 | CentraSite for Developers | 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:

Copyright © 2015- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release