Creating the Web Service Client

Use the following recommended approach to generate the Web Service client by using Apache Axis2 and XMLBeans:

  1. Extract ucmdb_service.aar to a temporary folder.

    The ucmdb_service.aar file is available under \UCMDB\UCMDBServer\deploy\axis2\WEB-INF\services\.

  2. Download the axis2-1.1.1-bin.zip file from the following address, and then unpack the file.

    http://axis.apache.org/axis2/java/core/download.cgi

  3. Run the following command:

    <axis2-1.1.1 install folder>\bin\wsdl2java -uri <ucmdb_serverice.aar extract folder>/META-INF/DiscoveryService.wsdl -d xmlbeans -p com.hp.ucmdb.generated -s -a -o <output folder>
  4. Under the <output folder>, run ant Build.xml to generate the Web Service client jar packages.

Now you can use the generated jar files together with all the jar files under C:\UCMDB\UCMDBServer\deploy\axis2\WEB-INF\lib\ to develop codes to call the Data Flow Management Web Service API.