You are not logged in.
Pages: 1
Hi every one.
//var LItemService := aPassakServer.ServiceRegister(TItemService, [TypeInfo(IItemService)], sicPerSession, '4');
var LItemService := aPassakServer.ServiceDefine(TItemService, [IItemService], sicPerSession, '4');
LItemService.ResultAsJsonObjectWithoutResult := True;
LItemService.ByPassAuthentication := False; //We can bypass authentication
when I cnahge ServiceRegister to ServiceDefine. ResultAsJsonObjectWithoutResult does not affect and result is:
{
"result": {
"Result": [
{
"cust_code": "0001",
"type": "domestic"
}
}
}
expected result is:
{
"Result": [
{
"cust_code": "0001",
"type": "domestic"
}
}
Offline
I find the problem.
with sicShared it is ok.
sicPerSession produce wrong result.
My question is, what do we need this json model for?
{"result":{"Result":[{"cust_code":"0001",type":"domestic"}}}}
What is the need for two result statements in json? Maybe I don't know the reason for this.
Last edited by anouri (Yesterday 11:10:13)
Offline
Offline
Thank you
Offline
Pages: 1