Using the LANDP MSR/E Device Service

About this task
For an example of using the LANDP® MSR/E Device Service, see the MsreTest class in the com.ibm.dse.samples.landp package. This class is a simple sample program that uses the MsreService class to communicate with a magnetic stripe reader and encoder. To successfully run the test, complete the following steps:
  1. Ensure that LANDP and the MSRE server are installed and loaded.
  2. Obtain the sample's XML files.
Results

The sample program displays two text fields and five buttons. When you click the Initialize button, the toolkit reads the dse.ini and the set of XML files. The XML files define an operation running in a context that contains an MsreService instance. Immediately after the toolkit successfully initializes, it instantiates the operation, opens the MSRE device, and registers the view as a handler of the service JavaBean events.

Once you have clicked Initialize, you can then click Read to prepare the device for reading or click Write to write some data to a card. You can click Cancel to end the read or write operation of the sample.