PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Log XML requests and responses

Open xps opened this issue 3 years ago • 1 comments

Hello,

Is there a way to log the XML requests (and responses) between the client and the Prestashop API?

Thanks

xps avatar Oct 07 '22 09:10 xps

Hello,

Yes, you can log the XML requests and responses by serializing the request objects before sending them and deserializing the responses after receiving them. You can then save these serialized XML strings to a file or a database for logging purposes.

sanctusmob avatar Oct 03 '24 11:10 sanctusmob