Edit report at http://bugs.php.net/bug.php?id=50895&edit=1
ID: 50895 Updated by: j...@php.net Reported by: jitka at darbujanova dot cz Summary: Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Windows XP SP3 PHP Version: 5.2.12 Block user comment: N Private report: N New Comment: Duplicate of bug #50547 Previous Comments: ------------------------------------------------------------------------ [2010-02-01 09:46:32] jitka at darbujanova dot cz I found that my report is copy of this bug report: http://bugs.php.net/bug.php?id=50547. Please comment somebody if this is solving... ------------------------------------------------------------------------ [2010-02-01 09:37:04] jitka at darbujanova dot cz Description: ------------ There should be a possibility to catch this fatal error (it shouldn't be fatal error, only the Exception). Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules in C:\path\Soap\Server.php on line <i>123456789. So when for example soap client sends string for an integer field, program can react on this by telling which input is wrong in our language.... Reproduce code: --------------- <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ind="http://testserver.local/ws/"> <soapenv:Header/> <soapenv:Body> <ind:MyMethod soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <input xsi:type="ind:MyComplexType"> <myint xsi:type="xsd:int">? or any string</myint> </input> </ind:MyMethod> </soapenv:Body> </soapenv:Envelope> Expected result: ---------------- Exception: SOAP-ERROR: Encoding: Violation of encoding rules in xxx.php not Fatal Error... Actual result: -------------- Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules in Mypath\Soap\Server.php on line 123456 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=50895&edit=1