Skip Headers
Oracle® Communications Network Integrity UIM Sample Web Service Guide
Release 7.1

E23708-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
PDF · Mobi · ePub

13 Checking Response Messages

This chapter provides information on response messages for the Network Integrity Unified Inventory Management (UIM) Sample Web Service.

Response Message Format

Response messages can appear in the following forms:

Use the following code pattern to inspect a response and detect an operation FAILURE.

CreateLogicalDeviceRequestType createLogicalDeviceRequestType = new CreateLogicalDeviceRequestType();
 
createLogicalDeviceRequestType.setLogicalDevice(wsLogicalDevice);
 
checkResponse(uimPort.createLogicalDevice(createLogicalDeviceRequestType));

public static final void checkResponse(InventoryResponseType response) throws InventoryFaultType {
                        String[] errors = response.getErrors();
                          if (errors != null && errors.length > 0) {
                                        throw new InventoryFaultType(errors, null);
                          }
}