From:             ebourlon at mail dot mobistar dot be
Operating system: Win32
PHP version:      5.2.0
PHP Bug Type:     SOAP related
Bug description:  SOAP Server: parameter not matching the WSDL specified type 
are set to 0

Description:
------------
Assume you have a WSDL including the following ComplexType

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

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?

Br,

Eric Bourlon




-- 
Edit bug report at http://bugs.php.net/?id=39832&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39832&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39832&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39832&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39832&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39832&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39832&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39832&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39832&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39832&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39832&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39832&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39832&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39832&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39832&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39832&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39832&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39832&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39832&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39832&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39832&r=mysqlcfg

Reply via email to