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?

Parents Reply Children
  • 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