ZF-6346: The WSDL documentation element must be the first child of the documented node

Issue Type: Bug Created: 2009-04-19T14:07:00.000+0000 Last Updated: 2009-05-30T12:05:47.000+0000 Status: Resolved Fix version(s): - 1.8.3 (09/Jun/09)

Reporter: Fabien Crespel (fcrespel) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Soap_Wsdl

Related issues: - ZF-6349

Attachments: - Zend_Soap_Wsdl-Documentation.diff


In Zend_Soap_Wsdl, the addDocumentation() method appends the documentation element to the documented node. This is invalid with regard to the WSDL XML Schema as well as the WS-I Basic Profile 1.1, and can cause validation errors. The documentation element must be the first child of the node.


Posted by Fabien Crespel (fcrespel) on 2009-04-19T14:09:23.000+0000

This patch fixes the issue mentioned above, and updates the method's docblock to explain why the 'documentation' element is used instead of 'document'. Basically, the WSDL spec is wrong, the WSDL schema is right and confirmed by the WS-I Basic Profile 1.1.

Posted by Benjamin Eberlei (beberlei) on 2009-05-30T12:05:47.000+0000

I had to made some changes to your patch since it did not lead to the correct result in all cases.

Committed to trunk and 1.8 release branch.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.