CentraSite Documentation : CentraSite Developer's Guide : Access via UDDI : UDDI V3 APIs : Examples : Fetching Taxonomies
Fetching Taxonomies
The following example shows how to fetch taxonomies, using the Taxonomy API:
//RegistryConfiguration containing the host, port,
//userId and password to connect to registry
RegistryConfiguration regConfig =
new RegistryConfiguration("hostName", "port", "userId", "password");
 
//Creating the RegistryService using RegistryConfiguration
RegistryService regService =
RegistryService.Factory.newInstance(regConfig);
 
//connecting to registry. This method will fetch the
//AuthToken using get_authTokenAPI
regService.connect();
 
//Getting the taxonomy soap service which is used fetch the taxonomies
UDDI_Taxonomy_SoapService taxonomySoapService =
regService.getTaxonomySoapService();
 
//Constructing the get_conceptDetail request
GetConceptDetail getConceptDetail = new GetConceptDetail();
 
//Fetching the NAICS taxonomy
getConceptDetail.setConceptKey(new String[]
{"uddi:uddi.org:ubr:categorization:naics:1997"});
 
//Using UDDI_Taxonomy_SoapService we are fetching the
//taxonomies from CentraSite registry
ConceptDetail conceptDetail =
taxonomySoapService.get_conceptDetail(getConceptDetail);
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback