Aivaras
New Member
Hello,
I'm trying to expose my abl application as a service as shown in Progress Education Comunity matterial. Get requests work fine, but i'm getting a 500 error when trying to post JSON data to server. Here's the response:
_errorMsg: "ERROR condition: An incomplete client request. (8020) (7211)"
_errorNum: 8020
Here's the service:
Here's the JSON request:
POST -> http://localhost:8980/CustomerOrderAppService/rest/CustomerOrderAppService/Customers
I'm running 11.5 OpenEdge
Thanks!
I'm trying to expose my abl application as a service as shown in Progress Education Comunity matterial. Get requests work fine, but i'm getting a 500 error when trying to post JSON data to server. Here's the response:
_errorMsg: "ERROR condition: An incomplete client request. (8020) (7211)"
_errorNum: 8020
Here's the service:
Code:
DEFINE INPUT-OUTPUT PARAMETER TABLE FOR custRecord.
BUFFER-COPY custRecord EXCEPT custNum TO Customer.
EMPTY TEMP-TABLE custRecord.
BUFFER-COPY Customer TO custRecord.
RELEASE Customer.
Here's the JSON request:
POST -> http://localhost:8980/CustomerOrderAppService/rest/CustomerOrderAppService/Customers
Code:
"custRecord":{
"custRecord":[
{
"Country":"USA",
"Name":"Boucher Fitness",
"Address":"276 North Drive",
"Address2":"",
"City":"Burlington",
"State":"MA",
"PostalCode":"01730",
"Contact":"Gloria Boucher",
"Phone":"(617) 450-0083",
"SalesRep":"DKP",
"CreditLimit":66700.0,
"Balance":903.64,
"Terms":"Net30",
"Discount":35,
"Comments":"",
"Fax":"",
"EmailAddress":"jb@xyz.com"
}
]
}
}
}
I'm running 11.5 OpenEdge
Thanks!