ZF-10625: Zend_Soap_Wsdl::addBindingOperation - Faults Not Added Correctly

Description

Index: library/Zend/Soap/Wsdl.php

I'm using the wsdl class to generate a wsdl document for my project. I was having trouble with some stuff so I read through the source and spotted a copy paste error in the code. Here's the fix.

If this is a repeat then I apologize, but I couldn't find it through searching.

--- library/Zend/Soap/Wsdl.php  (revision 23285)
+++ library/Zend/Soap/Wsdl.php  (working copy)
@@ -321,7 +321,7 @@
                 $node->setAttribute('name', $fault['name']);
             }
             $soap_node = $this->_dom->createElement('soap:body');
-            foreach ($output as $name => $value) {
+            foreach ($fault as $name => $value) {
                 $soap_node->setAttribute($name, $value);
             }
             $node->appendChild($soap_node);

Comments

Fixed.

BTW It also needed 'soap:body' to be replaced with 'soap:fault'.