Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #7224 Children of ComplexTypes
Submitted: 2006-03-28 09:12 UTC
From: markus at emedia-solutions-wolf dot de Assigned: yunosh
Status: Closed Package: SOAP (version 0.9.3)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-03-28 09:12 UTC] markus at emedia-solutions-wolf dot de (KnisterPeter)
Description: ------------ When one wants to get a child of a complex type but the complex type is a struct, then the method getComplexTypeChildType returns null. This is, because the the method getComplexTypeForElement always returns null for struct types. To get the child type in this case the method should be patched (see code below). function getComplexTypeChildType($ns, $name, $child_ns, $child_name) { // is the type an element? $t = $this->_getComplexTypeForElement($name, $ns); if ($t) { // no, get it from complex types directly if (isset($t['elements'][$child_name]['type'])) return $t['elements'][$child_name]['type']; } else { // Type is not an element but complex if (isset($this->ns[$ns]) && isset($this->elements[$this->ns[$ns]][$name]['complex']) && $this->elements[$this->ns[$ns]][$name]['complex']) { return $this->elements[$this->ns[$ns]][$name]['elements'][$child_name]['type']; } } return null; }

Comments

 [2007-01-20 01:17 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!