Parsing event data

The probe receives event data from the Itron OWCE EMS in XML format.

The probe handles the following types of Itron smart meter events:
  1. A smart meter is down.
  2. A smart meter is restored.
The following example XML event notification contains two events within ExceptionsArrived elements:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:sub="http://www.itron.com/ami/2009/08/subscriptions">
	<soapenv:Header/>
	<soapenv:Body>
		<sub:ExceptionsArrived>
			<sub:input>
				<sub:MeterExceptionCollection>
					<sub:MeterException>
						<sub:ElectronicSerialNumber>1</sub:ElectronicSerialNumber>
						<sub:ReceivedWhen>2010-01-01T00:00:00Z</sub:ReceivedWhen>
						<sub:ExceptionCategory>PowerOutageOrRestoration</sub:ExceptionCategory>
						<sub:Name>Primary Power Down</sub:Name>
						<sub:ID>18001</sub:ID>
					</sub:MeterException>
					<sub:MeterException>
						<sub:ElectronicSerialNumber>1</sub:ElectronicSerialNumber>
						<sub:ReceivedWhen>2010-01-01T00:00:00Z</sub:ReceivedWhen>
						<sub:ExceptionCategory>PowerOutageOrRestoration</sub:ExceptionCategory>
						<sub:Name>Primary Power Up</sub:Name>
						<sub:ID>18002</sub:ID>
					</sub:MeterException>
				</sub:MeterExceptionCollection>
			</sub:input>
		</sub:ExceptionsArrived>
	</soapenv:Body>
</soapenv:Envelope>

The <sub:ElectronicSerialNumber> element contains the serial number by which the smart meter can be identified.

Within the first <sub:MeterException> element, the following element values indicate to the probe that the smart meter is down:
  • <sub:ExceptionCategory> PowerOutageOrRestoration </sub:ExceptionCategory> (the exception category concerns a power outage or restoration)
  • <sub:Name>Primary Power Down</sub:Name> (the name of the exception is Primary Power Down)
Within the second <sub:MeterException> element, the following element values indicate to the probe that the smart meter has been restored to service:
  • <sub:ExceptionCategory> PowerOutageOrRestoration </sub:ExceptionCategory> (the exception category concerns a power outage or restoration)
  • <sub:Name>Primary Power Up</sub:Name> (the name of the exception is Primary Power Up)