php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50956 SOAP-ERROR: parsing schema
Submitted: 2010-02-07 19:10 UTC Modified: 2013-10-15 11:54 UTC
Votes:8
Avg. Score:4.2 ± 0.8
Reproduced:6 of 7 (85.7%)
Same Version:0 (0.0%)
Same OS:1 (16.7%)
From: tony at marston-home dot demon dot co dot uk Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.12 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 + 20 = ?
Subscribe to this entry?

 
 [2010-02-07 19:10 UTC] tony at marston-home dot demon dot co dot uk
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-16 01:00 UTC] rvestra at unm dot edu
Can anyone provide feedback on this it would really help?  I am running across the same problem.  I get this error on the documentation tag as follows.

"SOAP-ERROR: Parsing Schema: unexpected <documentation> in schema"
 [2013-02-17 10:16 UTC] stas@php.net
Could you provide the full WSDL that exhibits this behavior?
 [2013-02-17 10:16 UTC] stas@php.net
-Status: Open +Status: Feedback
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC