I have a syntax error in my PHP script, which would be simple to fix if PHP gave me the line number where the error occurred.
But all I get back from PHP’s Soap Server class is:
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>syntax error, unexpected '.', expecting ',' or ';'</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
My Server PHP code is:
$server = new SoapServer(__APP_PATH_VAR."WSDL/MYWSDL.wsdl");
$server->setClass('MY_SOAP_CLASS',$this->Core);
$server->handle();
The error is being automatically generated- I don’t have any code to produce this message.
How do I make PHP include the line number where the error occurred in the response?
Put this at the start of your document to debug: