--Scan 1 item.
[
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:12:07.012"
}
]
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
--Successfully posted from B4A app to web service.
--Web service response:
{
"items": [
{
"RecordsInserted": "ok"
}
]
}
** Activity (uploadscandetail) Pause, UserClosed = true **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (scan) Create, isFirst = false **
** Activity (scan) Resume **
** Activity (scan) Pause, UserClosed = false **
** Activity (scan) Create, isFirst = false **
** Activity (scan) Resume **
** Activity (scan) Pause, UserClosed = false **
** Activity (scan) Create, isFirst = false **
** Activity (scan) Resume **
** Activity (scan) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (setup) Create, isFirst = false **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = false **
** Activity (uploadscandetail) Create, isFirst = false **
** Activity (uploadscandetail) Resume **
--Trying 7 records, which are all the same PLU item.
--It will fail with 500 internal server error.
--Following JSON character count: 1151
[
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:17.821"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:18.445"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:19.076"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:19.696"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:20.359"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:21.260"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:23.341"
}
]
ResponseError. Reason: Internal Server Error, Response: <!DOCTYPE html>
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>500 Internal Server Error</h1>
The server encountered a fatal error processing this request and could not continue.
<p>
<hr>
<address>Alpha Anywhere Application Server Application Server/12.0 Build/4119-4825 at SAV-APP1 Port 80</address>
</body></html>
** Activity (uploadscandetail) Pause, UserClosed = true **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = false **
** Activity (scanneditemsview) Create, isFirst = false **
** Activity (scanneditemsview) Resume **
** Activity (scanneditemsview) Pause, UserClosed = true **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = false **
** Activity (uploadscandetail) Create, isFirst = false **
** Activity (uploadscandetail) Resume **
--I then deleted one record, making 6 records.
--All the same PLU items.
--Post works fine.
--Following JSON character count: 987
[
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:17.821"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:18.445"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:19.696"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:20.359"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:21.260"
},
{
"hid": 1783,
"plu": "012000151163",
"qty": 1,
"price": "3.74",
"userid": "mark",
"scandatetime": "2017-10-20 12:14:23.341"
}
]
{
"items": [
{
"RecordsInserted": "ok"
}
]
}
** Activity (uploadscandetail) Pause, UserClosed = true **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **