ZF-8948: Allowing SOAP/WSDL ComplexType recursion.

Issue Type: Improvement Created: 2010-01-27T05:10:43.000+0000 Last Updated: 2010-02-05T16:21:09.000+0000 Status: Resolved Fix version(s): Reporter: Richard Quadling (rquadling) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Soap_Wsdl

Related issues: - ZF-5766

Attachments: - ProoveRecursion.php


When a complexType contains itself (recursion), this is currently blocked when producing a WSDL file.

This patch allows for such recursion.

The pactch I've supplied works for me.

But I'm not convinced that the recursion fix is 100% as ...

<pre class="highlight">
class SingleEntity{
       /** @var SingleEntity[] */
       public $Entities = array();

       /** @return SingleEntity */
       public function SingleEntity(){
               return new SingleEntity();

produces types of ...

<pre class="highlight">

and I've no idea if that is valid.

I'm new with this, so please check this.


Posted by Richard Quadling (rquadling) on 2010-01-27T05:17:36.000+0000

Patch to allow direct recursion - that is type A contains a entry of type A.

Posted by Richard Quadling (rquadling) on 2010-01-27T05:39:12.000+0000

This script is a really dumb script to show that the WSDL file can now be produced where an entity has an element of the same type as itself.

Posted by Benjamin Eberlei (beberlei) on 2010-02-05T16:21:09.000+0000

This is a duplicate

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.