- Alex Riofrio
- PowerBuilder
- Wednesday, 27 January 2021 12:20 AM UTC
Hello,
I'm following the tutorial: https://docs.appeon.com/dwconverter2019r3/CRUD_Operations_with_.NET_DataStore/index.html
But when I call the Create method from PowerBuilder 2019 R3 I get the following error message: "JSON value could not be converted to System.Datetime"
I have tested this same function from the "Web API Tester" and it works without problems.
I am working with:
PB and SnapDevelop 2019 R3 Build 2670.
SQL Server 2017.
In PB I use the follow sintax to set the request headers
// Set the Request Headers to tell the Web API you will send JSON data
inv_RestClient.SetRequestHeader ("Content-Type", "application/json;charset=UTF-8")
// Set the Request Headers to accept GZIP compression
inv_RestClient.SetRequestHeader("Accept-Encoding", "gzip")
The client and Web API side are completely new.
Thanks in advance for any help,
Alex
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.