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

Reply via email to