Jump to content
Andrea Magni

New feature: TMARSClientResourceJSON now implements REST.Client.IRESTResponseJSON

Recommended Posts

It is just a small addition to MARS Client library capabilities but TMARSClientResourceJSON now implements REST.Client.IRESTResponseJSON interface (from Delphi's REST Client library).

This basically means you can use a TMARSClientResourceJSON and materialize a dataset through the TRESTResponseDataSetAdapter component (from Delphi's REST Client library).

 

Enjoy 😉

Schermata 2018-11-19 alle 17.14.25.png

Share this post


Link to post

HI Andrea, I've just updated my copy of the repo (git pull) and whilst trying to build MARSClient.Core240 (from MARSClient.Enterprise) I get "[dcc32 Fatal Error] MARSClient.Core.dpk(62): F2613 Unit '..\..\Source\MARS.Client.Messaging.Resource.pas' not found."  Did I do something wrong in updating the repo?  Thanks

Share this post


Link to post

The joys of packages as a library author. Looks like commit ace9e54 only modified the 10.2 package.

 

That commit removed the following files:

 

MARS.Client.Messaging.Resource.pas
MARS.Client.SubResource.JSON.pas
MARS.Client.SubResource.pas
MARS.Client.SubResource.Stream.pas

 

Just remove them from the contains in the MARSClient.Core.dpk and you should be able to compile.

Edited by Stefan Glienke
  • Thanks 1

Share this post


Link to post

BTW, I've just updated 10.1 Berlin packages (I am not sure I have VMs for earlier versions).

 

If you are using Berlin, let me know if your problems are now solved.

 

Thanks

Share this post


Link to post

Hi all, 

 

(Apologies for late reply)

 

Pulled latest source & all packages build now, problem solved thanks.   Yes, I am using 10,1 Berlin - sorry should've mentioned that.

 

Kindest regards

Edited by Stuart Clennett
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×