How to log a PHP Soap call with NuSoap

I am doing some debugging in PHP for Gestpay.

Gestpay is an italian system that allows to accept payments from customers, all over the world. If you have an e-commerce and want to try something (in my opinion) way more powerful than other systems, you should definitely check this out.

So, today I had to send a php SOAP call to Gestpay, but for some reasons I was doubting that the actual xml contained exactly what I was sending.

We are using NuSoap, a PHP library that allows to use SOAP on old versions of the language, as old as 4.x, and that does not have any external dependencies, so it should work with a great number of hostings. You may feel better using something more powerful and modern.

Back to our question: how do you show the NuSoap call?

Here it is:

And you’ll see something the output of your code to something like …

I found this tip on stack overflow… I’m sticking it in my blog because I’m sure I’ll need it in the future!

Related Posts: