The ECReports servlet is installed with WebSphere® Sensor Events and allows ALE 1.1 implementations to send ECReports to the sensor event gateway. The servlet accepts XML as input and converts it into an IBMSensorEvent that is then placed on the SIBus.
ECReports are sent to the servlet using the POST method in the body of the HTTP request that is called by the ALE 1.1 implementation. The corresponding IBMSensorEvents are published by the servlet to the SIBus with the topic ibmse/EDDR/report/TagAggregationReport.
The ECReports servlet can also be used to get ALE events from Data Capture and Delivery to WebSphere Sensor Events ALE.
The servlet is installed with WebSphere Sensor Events. To access the servlet, enter the following URL into a browser: http://localhost:9080/ibmse/ECReport.
If the value of the logical reader corresponds to a reader or device ID assigned to a location within the topology, or the value does not correspond to a reader ID or a location ID within the topology:
00000065 KimonoTaskLog E com.ibm.sensorevent.DDR.taskagents.ejb.TagReadTaskAgentBean onIBMSensorEvent TRAS0014I: The following exception was logged com.ibm.rfid.premises.app.access.PremisesAccessException: javax.ejb.ObjectNotFoundException: Single object finder returned 0 objects.
Adhering to these restrictions ensures that the tag read information flows through the system with no issues and maximizes the reuse of existing functionality. For example, information is viewable as a BIRT report, which is only generated for locations within the topology. The generated sensor events are persisted to the database and published to the SIBus using a topic of ibmse/profile/report/TagAggregationReport. The value of profile is determined by looking up the location type associated with the logical reader; for example, BDDR for Basic Dock Door Receiving, SDDR for Standard Dock Door Receiving, and EDDR for Enhanced Dock Door Receiving.
The following is an example XML message defining an ECSpec that complies with these restrictions and assumes a default WebSphere Sensor Events location topology:
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:impl="urn:epcglobal:ale:wsdl:1" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <impl:Define> <impl:specName>ECSpecName1</impl:specName> <impl:spec creationDate="2008-02-19T10:54:06.444-05:00" schemaVersion="1.1" xmlns="urn:epcglobal:ale:xsd:1" includeSpecInReports="true"> <logicalReaders> <logicalReader>P2</logicalReader> </logicalReaders> <boundarySpec> <duration unit="MS">10000</duration> </boundarySpec> <reportSpecs> <reportSpec reportIfEmpty="true" reportName="ReportName1"> <reportSet set="CURRENT"/> <output includeTag="true"/> </reportSpec> </reportSpecs> </impl:spec> </impl:Define> </soapenv:Body> </soapenv:Envelope>