Bug #47934 [Com]: SOAP server ignores enumeration restrictions in WSDL
| From: | remo dot laubacher at gmail dot com | Date: | Thu, 23 Jan 2014 15:39:04 +0000 |
| Subject: | Bug #47934 [Com]: SOAP server ignores enumeration restrictions in WSDL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183975@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47934&edit=1
ID: 47934
Comment by: remo dot laubacher at gmail dot com
Reported by: funky2step at gmail dot com
Summary: SOAP server ignores enumeration restrictions in WSDL
Status: Open
Type: Bug
Package: SOAP related
Operating System: RHEL 5.3
PHP Version: 5.2.9
Block user comment: N
Private report: N
New Comment:
There's a patch for this issue, haven't tested it though: https://bugs.php.net/bug.php?id=55503
Previous Comments:
------------------------------------------------------------------------
[2011-09-01 13:16:17] bouloukg at yahoo dot com
hi, i have the same problem! Does any body knows how can i get simpleType with
restriction block and several enumerations with php soap extensions?
------------------------------------------------------------------------
[2010-11-18 16:50:38] will at phpfever dot com
Can you provide your WSDL with the definitions themselves?
------------------------------------------------------------------------
[2009-04-09 09:36:51] funky2step at gmail dot com
Description:
------------
The WSDL types section contains a simpleType with restriction block and several enumerations.
When a request is made however, these enumerations are ignored and any value is allowed to be
passed.
Reproduce code:
---------------
http://pastebin.com/f6a307852
The fetch_type element is the one causing problems.
Expected result:
----------------
Expect a SOAP error when data type is not one of the enumerations.
Actual result:
--------------
Server produces valid response no matter what the data value is for the fetch_type element.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47934&edit=1