Logging SOAP Requests and Responses Using the PHP Toolkit
To enable SOAP logging with the PHP Toolkit, create a folder called nslog in the PHPToolkit folder inside the project. The PHP Toolkit will automatically spool the SOAP requests generated by the PHP code, and the responses that have been returned by the server, into the nslog folder in standard XML format.
The following listing shows the typical project structure when logging is enabled:
Project_1 <Directory>
PHPToolkit.php
NSconfig.php
NetSuiteService.php
nslog <Directory>
20120317.160138.6941-add-request.xml
20120317.165167.8345-add-response.xml
20120317.180653.3467-delete-request.xml
20120317.187474.3356-delete-response.xml
...
Note:
To disable logging, rename or delete the nslog folder.