Inspect XML created by PHP SoapClient call before/without sending the request
Upfront remark: In order to use the __getLastRequest() method successfully, you have to set the ‘trace’ option to true on client construction: $client = new SoapClient(‘wsdldoc.asmx?WSDL’, array(‘trace’ => TRUE)); This way, your request will still be sent (and therefore still fail), but you can inspect the sent xml afterwards by calling $client->__getLastRequest(). Main answer: To … Read more