Hi,
In the class BMScanResponseBatch you only have a single variable for ScanResult.
you need a list instead, something like that:
Public Class BMScanResponseBatch
Public Property SessionID As String
Public Property Result As Integer
Public Property ErrorCode As Integer
Public Property Message As String
Public Property ScanData As New List(Of ScanResult)
End Class
Also in your webservice method reads all the entries to the ends and constantly updates your property. Instead you need to add each value to the list.
Something like that:
If reader.HasRows() Then
ItemID = 0
response.SessionID = SessionId
response.Result = 1
response.ErrorCode = 0
response.Message = "SUCCESS"
While reader.Read()
response.ScanData.Add(
New ScanResult With {
.ItemId = ItemID,
.MICR = Replace(reader.Item("MICR").ToString(), ";", " "),
.FIMAGE = reader.Item("FrontImage").ToString(),
.BIMAGE = reader.Item("BackImage").ToString(),
.ScanData.UIMAGE = ""})
ItemID += 1
End While
End If