I am dealing with a web service which is sometimes throwing fatal errors.
I want to display the SOAP request so I can see what is being sent and hopefully fix the problem.
So far I have the following, where $xml_string is the contents of a file with the XML header emoved.
// Create a new soap client
$client = new SoapClient("http://www.mba.ac.uk/demonstrations/schematron/validate.asmx?WSDL");
// Create the parameters to pass to the service
$parameters->xml->any = new SoapVar(trim($xml_string), XSD_ANYXML);
/*
* Iso Schematron vlaidation
*/
// Send the request to the service
$iso_response = $client->IsoSchematronValidation($parameters)->IsoSchematronValidationResult;
How would I display the last SOAP request.
Thanks for any help.