West Wind Internet and Client Tools
wwclient60
Gravatar is a globally recognized avatar based on your email address. wwclient60
  Pasculescu Liviu
  All
  Feb 15, 2018 @ 08:59pm

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,

Gravatar is a globally recognized avatar based on your email address. re: wwclient60
  Rick Strahl
  Pasculescu Liviu
  Feb 16, 2018 @ 01:24am

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 ---

Gravatar is a globally recognized avatar based on your email address. re: wwclient60
  Pasculescu Liviu
  Rick Strahl
  Feb 16, 2018 @ 07:23am
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,

Gravatar is a globally recognized avatar based on your email address. re: wwclient60
  Rick Strahl
  Pasculescu Liviu
  Feb 17, 2018 @ 02:04pm

You're going to have to do your own homework me thinks instead of coming here and asking for us to do it for 😃

There are examples in the documentation.

+++ Rick ---

© 1996-2024