Difference between revisions of "Application Level Events (ALE) User's Guide"
From RifidiWiki
(→Execute) |
(→5. Call setEndPoint(String endPointName)) |
||
Line 30: | Line 30: | ||
===5. Call setEndPoint(String endPointName)=== | ===5. Call setEndPoint(String endPointName)=== | ||
− | Call setEndPoint(String endPointName) for ALE | + | Call setEndPoint(String endPointName) for ALE, then type the url http://localhost:8112/aleservice as the endpoint attribute, then clic Invoke |
− | Call setEndPoint(String endPointName) for ALELR | + | [[File:ale_setendpoint.jpg]] |
+ | |||
+ | Call setEndPoint(String endPointName) for ALELR, then type the url http://localhost:8112/alelrservice as the endpoint attribute, then clic Invoke | ||
+ | |||
+ | [[File:alelr_setendpoint.jpg]] | ||
==Validate== | ==Validate== |
Revision as of 22:29, 12 January 2016
Note: Leverage similar approach to REST - below is just my thoughts - open to other ways to approach
Contents
- 1 Introduction
- 2 Configuration
- 3 How to Test ALE Operations
- 4 ALE Operations
- 4.1 getEndpoint()
- 4.2 setEndpoint(String endPointName)
- 4.3 define(String specName, String specFilePath)
- 4.4 undefine(String specName)
- 4.5 getECSpec(String specName)
- 4.6 getECSpecNames()
- 4.7 subscribe(String specName, String notificationUri)
- 4.8 unsubscribe(String specName, String notificationUri)
- 4.9 poll(String specName)
- 4.10 immediate(String specFilePath)
- 4.11 getSubscribers(String specName)
- 4.12 getStandardVersion()
- 4.13 getVendorVersion()
- 5 ALELR Operations
- 5.1 getEndpoint()
- 5.2 setEndpoint(String endPointName)
- 5.3 define(String readerName, LRSpec spec)
- 5.4 undefine(String readerName)
- 5.5 update(String readerName, LRSpec spec)
- 5.6 getLogicalReaderNames()
- 5.7 getLRSpec(String readerName)
- 5.8 addReaders(String readerName, String[] readers)
- 5.9 setReaders(String readerName, String[] readers)
- 5.10 removeReaders(String readerName, String[] readers)
- 5.11 setProperties(String readerName, LRProperty[] properties)
- 5.12 getPropertyValue(String readerName, String propertyName)
- 5.13 getStandardVersion()
- 5.14 getVendorVersion()
- 6 Example Rifidi App/Client
Introduction
Configuration
such as JVM args with explanation
How to Test ALE Operations
Set up testing
Execute
1. Start Rifidi server
Start the Rifidi server
2. Start Rifidi emulator
Start the Rifidi emulator, create an LLRP reader type, start it, and then create some Gen2 tags, and drag and drop some of them to emulated reader's antenna
3. Validate ALE and ALELR Web services are running
To validate ALE Web service, go to http://localhost:8112/aleservice?wsdl and you should see the web service definition
To validate ALELR Web service, go to http://localhost:8112/alelrservice?wsdl and you should see the web service definition
If you do not get web service response, make sure you have set required JVM arguments, as described in previous steps
4. Open web client application
Point your web browser to http://localhost:8081/fc-webclient-1.2.0/services/ALEWebClient.jsp and you should see the web application to test ale and alelr web services:
5. Call setEndPoint(String endPointName)
Call setEndPoint(String endPointName) for ALE, then type the url http://localhost:8112/aleservice as the endpoint attribute, then clic Invoke
Call setEndPoint(String endPointName) for ALELR, then type the url http://localhost:8112/alelrservice as the endpoint attribute, then clic Invoke
Validate
ALE Operations
Note: for each operation example request/response/wsdl