Hi,
I bought on 18.05.2017 wwclient60. Now I want to access a REST service and my version does not have the wwJsonServiceClient class. Can I use REST with https?
if yes, Do I have to buy an upgrade? or Being under one year is it free?
Thanks,
You can find the class in the wwJsonSerializer.prg
:
DO wwJsonSerializer
loService = CREATEOBJECT("wwJsonServiceClient")
You can always look for what file classes are contained in at the bottom of the respective class documentation. Like this one:
Scroll all the way to the bottom.
+++ Rick ---
http://portal.xxx.ro/api/result
POST
Header: (Key->Value)
Content-Type -> multipart/form-data
Authorization -> apikey c42c1e31-9b99-xxxx-xxxx-xxxxxxxxxxxx
Body: (Key->Value)
bulletin_no -> 18104T0065
pacient_name -> Pop Maria
bulletin_date -> 2018-01-08 07:28:00
lab_cod -> 001
lab_name -> Cluj
pacient_cnp -> 1611113354792
file -> 18104T0065.pdf
permission[0][username] -> 185xxxxxxxxxx
permission[0][email] -> pl@yahoo.com
permission[0][type] -> pacient
If I call the REST endpoint service in Postman with the parameters above, it works well.
How can I call it using the wwJsonServiceClient class?
Thank you very much,