Highlighted
Absent Member.
Absent Member.
692 views

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?

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

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

AFAIK, those will be downloaded dynamically.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

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

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

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

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

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

 

 

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.