Previous Topic: How to Test the Web Services APINext Topic: Sample Perl Script


How Error Reporting Works

All interfaces except ShowVersion() return an XmlDocument object. The root node of the document is named after the method; for example, NetworkDefinitionsList or UpdateNetworkDefinition. The following attributes are attached to this root node:

The following examples illustrate the object and attributes:

<NetworkDefinitionsList Status="True" Message="">
  <Network>
  <ClientId>3</ClientId>
  <Description>192.168.0.2</Description>
  <SubnetMask>192.168.0.2/32</SubnetMask>
  <Regions>1<_/Regions>
  </Network>
</NetworkDefinitionsList>

<?xml version="1.0" encoding="utf-8" ?> <ReloadCollectors Status="False" Message="Can't connect to MySQL server on 'localhost' (10061)" />
<?xml version="1.0" encoding="utf-8" ?> <UpdateNetworkDefinition Status="True" Message=""><ClientId>7</ClientId></UpdateNetworkDefinition>
<?xml version="1.0" encoding="utf-8" ?> <InsertNetworkDefinition Status="True" Message=""><ClientId>8</ClientId></InsertNetworkDefinition>