#50895 [NEW]: Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules
| From: | jitka at darbujanova dot cz | Date: | Mon, 01 Feb 2010 09:37:05 +0000 |
| Subject: | #50895 [NEW]: Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-147078@lists.php.net to get a copy of this message | ||
From: jitka at darbujanova dot cz
Operating system: Windows XP SP3
PHP version: 5.2.12
PHP Bug Type: Feature/Change Request
Bug description: Fatal error: SOAP-ERROR: Encoding: Violation of encoding rules
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 bug report at http://bugs.php.net/?id=50895&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50895&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50895&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50895&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50895&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50895&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50895&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50895&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50895&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50895&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50895&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50895&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50895&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50895&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50895&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50895&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50895&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50895&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50895&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50895&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50895&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50895&r=mysqlcfg