UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

Where to get com.hp.ucmdb.generated.* packages?

Occasional Contributor

Where to get com.hp.ucmdb.generated.* packages?

Hello!

I want to use executeTopologyQueryByName(...) method from UCMDB API in my application. Through UCMDB GUI homepage and "API Client download" link i can only get com.hp.ucmdb.api.* packages, but how can get com.hp.ucmdb.generated.* packages, which must be imported for using executeTopologyQueryByName method (these imports described in example from UCMDB developers reference)?
Does anyone know?

3 REPLIES
HPE Expert

Re: Where to get com.hp.ucmdb.generated.* packages?

AFAIK, those will be downloaded dynamically.

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Occasional Advisor

Re: Where to get com.hp.ucmdb.generated.* packages?

Hello Dima, Can you tell more details about how download dynamically com.hp.ucmdb.generated.* ? 

Occasional Advisor

Re: Where to get com.hp.ucmdb.generated.* packages?

[ Edited ]

Okay, I understood that I must generate the the client with WSDL2Java. 

 

 

I tried to run next command: WSDL2Java -uri UcmdbService.wsdl -p com.hp.ucmdb.generated.services.UcmdbService -d adb -s and recieved a error (below), also I tried to run same command for other wsdl file and the command finished succesfully.

I think something wrong with UcmdbService.wsdl

 

 

E:\Users\Downloads\axis2-1.6.2-bin\axis2-1.6.2\bin>WSDL2Java -uri Ucm
dbService.wsdl -p com.hp.ucmdb.generated.services.UcmdbService -d adb -s
Using AXIS2_HOME: E:\Users\Downloads\axis2-1.6.2-bin\axis2-1.6.2
Using JAVA_HOME: C:\Program Files\Java\jdk1.8.0_25
Retrieving document at 'UcmdbService.wsdl'.
Retrieving schema at 'UcmdbService?xsd=xsd8', relative to 'file:/E:/Users/Downloads/axis2-1.6.2-bin/axis2-1.6.2/bin/UcmdbService.wsdl'.
log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.Project
ResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:178)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:ty
pes/xs:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schem
a referenced at 'UcmdbService?xsd=xsd8', relative to 'file:/E:/Users/d.paymulov/
Downloads/axis2-1.6.2-bin/axis2-1.6.2/bin/UcmdbService.wsdl'.: java.io.FileNotFo
undException: This file was not found: file:/E:/Users/Downloads/axis2
-1.6.2-bin/axis2-1.6.2/bin/UcmdbService?xsd=xsd8
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:320)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:133)
... 2 more
Caused by: java.io.FileNotFoundException: This file was not found: file:/E:/User
s/Downloads/axis2-1.6.2-bin/axis2-1.6.2/bin/UcmdbService?xsd=xsd8
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)

... 13 more

 

 

 

 

//Add this to "OnDomLoad" event