Subscribing to the EMS
The probe sends XML requests to subscribe to the Itron OWCE EMS and receive event data.
The subscription service used to subscribe to the Itron OWCE EMS is SubscribeToEndpointExceptionByGroup.
The following XML is an example of the type of request that
the probe sends to the Itron OWCE EMS to establish a subscription:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sub="http://www.itron.com/ami/2009/08/subscribers"
xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<sub:SubscribeToEndpointExceptionsByGroups>
<sub:request>
<sub:SubscriptionRequest>
<sub:SystemName>" + systemName + "</Sub:SystemName>
<sub:UriCollection>
<arr:anyURI>" + localServerUrl + "</arr:anyURI>
</sub:UriCollection>
</sub:SubscriptionRequest>
<sub:GroupConstraints>
<sub:MeterType>Electric</sub:MeterType>
<sub:FilteredGroupNames>Test Meter</sub:FilteredGroupNames>
</sub:GroupConstraints>
<sub:ExceptionCategoryConstraints>
<sub:ExceptionCategory>Configuration</sub:ExceptionCategory>
<sub:ExceptionCategory>StatusEvent</sub:ExceptionCategory>
<sub:ExceptionCategory>CommonOperation</sub:ExceptionCategory>
<sub:ExceptionCategory>PowerOutageOrRestoration</sub:ExceptionCategory>
<sub:ExceptionCategory>Communication</sub:ExceptionCategory>
</sub:ExceptionCategoryConstraints>
</sub:request>
</sub:SubscribeToEndpointExceptionsByGroup>
</soapenv:Body>
</soapenv:Envelope>
The <anyURI>
element contains the URI to which the Itron OWCE EMS sends notifications of new events. The probe listens for these
notifications and retrieves the events over a HTTP connection.