Getconfigurationxml, Getconfigurationresponse – MagTek Audio Reader for Android Devices User Manual
Page 27
21
-
public void setConfigurationXML(String lpstrXML)throws MTSCRAException
Parameters
lpstrXML
XML data received from the configuration server
getConfigurationXML
Retrieves the configuration parameters from the server as an XML data. The method will throw an
exception if there is a problem with retrieving the configuration XML.
-public String getConfigurationXML(String lpstrUsername, String lpstrPassword,int
lpiReaderType,SCRAConfigurationDeviceInfo lpDeviceInfo,String lpstrAddress, int
lpTimeout)throws MTSCRAException
Parameters
lpiReaderType
Type of reader. The type of reader is assigned an integer value starting at 1.
lpDeviceInfo
SCRAConfigurationDeviceInfo SCRAConfigurationDeviceInfo object. This object will be
used as a search criteria if provided. Currently we recommend the usage of Model number only.
If this is set to null, SDK will perform the search based on the model number.
lpstrAddress
Address of the remote configuration server. Please refer to the sample code for details
lpTimeout
Timeout specified for connecting to the server.
getConfigurationResponse
Retrieves the configuration parameters from XML data as a
ProcessMessageResponse Object
. . The
method will throw an exception if there is a problem with retrieving the configuration response
object.
-public ProcessMessageResponse getConfigurationResponse(String lpstrXML)throws
MTSCRAException
Parameters
lpstrXML
XML data received from the configuration server
getConfigurationResponse
Retrieves the configuration parameters from the server as a
ProcessMessageResponse Object
. . The
method will throw an exception if there is a problem with retrieving the configuration response
object.
-
public ProcessMessageResponse getConfigurationResponse(String lpstrUsername, String
lpstrPassword, int lpiReaderType,SCRAConfigurationDeviceInfo lpDeviceInfo,String
lpstrAddress, int lpTimeout)throws MTSCRAException