|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39832 SOAP Server: parameter not matching the WSDL specified type are set to 0
Submitted: 2006-12-14 12:25 UTC Modified: 2006-12-18 14:39 UTC
From: ebourlon at mail dot mobistar dot be Assigned: dmitry (profile)
Status: Closed Package: SOAP related
PHP Version: 5.2.0 OS: Win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ebourlon at mail dot mobistar dot be
New email:
PHP Version: OS:


 [2006-12-14 12:25 UTC] ebourlon at mail dot mobistar dot be
Assume you have a WSDL including the following ComplexType

<xs:complexType name="MessageInfoType">
      <xs:element name="NetworkErrorCode" type="NetworkErrorCodeType" minOccurs="0"/>
   <xs:attribute name="priority" type="PriorityType"/>
<xs:simpleType name="PriorityType">
   <xs:restriction base="xs:integer">
      <xs:minInclusive value="0"/>
	<xs:maxInclusive value="3"/>

If you build a SOAP server based on this WSDL and send a SOAP request to it the SOAP server will validate the SOAP request against the WSDL.

In the above example if your request contains a priority attribute containing a string for instance, the expected behaviour would be that the SOAP server raises an exception because the attribute does not match the defined type.
What it does instead is that it will put the priority attribute value to 0 and I don't find any way to find back the fact that a problem with WSDL validation occured.

It is a bug or is it a way at SOAP server code level to know that WSDL validation passed?


Eric Bourlon


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-18 14:39 UTC]
Fixed in CVS HEAD and PHP_5_2.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 11:01:26 2023 UTC