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

Issue Type: Bug Created: 2010-11-02T09:53:21.000+0000 Last Updated: 2010-11-15T07:30:42.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Chad Crabtree (flaxeater) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Soap_Wsdl

Related issues: Attachments:


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.

<pre class="literal">
--- 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);


Posted by Alexander Veremyev (alexander) on 2010-11-15T07:30:41.000+0000


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

Have you found an issue?

See the Overview section for more details.


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

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