Issues

ZF-10147: Strategy ArrayofTypeComplex Definition & Infinit recursion

Issue Type: Bug Created: 2010-07-13T06:26:36.000+0000 Last Updated: 2010-08-01T17:54:48.000+0000 Status: Resolved Fix version(s): Reporter: Thomas Tourlourat (armetiz) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Soap_Wsdl

Related issues: - ZF-5766

Attachments:

Description

If I define

<pre class="highlight">
class Model_DTO_User
{
   /**
   * @var Model_DTO_Book[]
   */
   $books;
}


class Model_DTO_Book
{
   /**
   * @var Model_DTO_User[]
   */
   $users;
}

When I try to generat WSDL, I have a problem of "Message: Infinite recursion, cannot nest 'Model_DTO_Book[]' into itself." Thrown by Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex.

Also, I have found a custom patch

<pre class="highlight">
//Replace
if(in_array($type, $this->_inProcess)) {
    require_once "Zend/Soap/Wsdl/Exception.php";
    throw new Zend_Soap_Wsdl_Exception("Infinite recursion, cannot nest '".$type."' into itself.");
}

//By
if(in_array($type, $this->_inProcess)) {
    //require_once "Zend/Soap/Wsdl/Exception.php";
    //throw new Zend_Soap_Wsdl_Exception("Infinite recursion, cannot nest '".$type."' into itself.");
    return "tns:$type"; 
}

When I do that, It work fine. But, WSDL define many times some types :

<pre class="highlight">

[...]

[...]

[...]

So, When I'm trying to import WSDL file. A problem of duplicate definition appears.

Comments

Posted by Ramon Henrique Ornelas (ramon) on 2010-08-01T06:40:12.000+0000

This already was resolved in trunk r21658. Will be applied the next minor release.

Greetings Ramon

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts