#50895 [Com]: Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules
| From: | jitka at darbujanova dot cz | Date: | Mon, 01 Feb 2010 09:46:33 +0000 |
| Subject: | #50895 [Com]: Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147079@lists.php.net to get a copy of this message | ||
ID: 50895
Comment by: jitka at darbujanova dot cz
Reported By: jitka at darbujanova dot cz
Status: Open
Bug Type: Feature/Change Request
Operating System: Windows XP SP3
PHP Version: 5.2.12
New Comment:
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...
Previous Comments:
------------------------------------------------------------------------
[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/?id=50895&edit=1