From: tony at marston-home dot demon dot co dot uk Operating system: Windows XP PHP version: 5.2.12 PHP Bug Type: SOAP related Bug description: SOAP-ERROR: parsing schema
Description: ------------ I am calling a soap service using the WSDL supplied by the service provider, but it is failing when I try to create the soap client. The error message is: SOAP-ERROR: Parsing Schema: unexpected <annotation> in element Reproduce code: --------------- The wsdl file contains entries such as: <xs:complexType name="FWTAuditDetails"> <xs:annotation> <xs:documentation> blah blah blah </xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="Created" type="xs:dateTime" minOccurs="0" /> <xs:element name="CreatedBy" type="FWTUser" minOccurs="0" /> <xs:element name="LastModified" type="xs:dateTime" minOccurs="0" /> <xs:element name="LastModifiedBy" type="FWTUser" minOccurs="0" /> </xs:sequence> </xs:complexType> If I put '<!--' and '-->' around the <xs:annotation> element the error disappears. Expected result: ---------------- As the <annotation> element is merely there for documentation purposes it should be ignored instead of causing an error. -- Edit bug report at http://bugs.php.net/?id=50956&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50956&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50956&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50956&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50956&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50956&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50956&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50956&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50956&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50956&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50956&r=support Expected behavior: http://bugs.php.net/fix.php?id=50956&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50956&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50956&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50956&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50956&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50956&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50956&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50956&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50956&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50956&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50956&r=mysqlcfg