protected function _addElementFromWsdlAndChildTypes($arrayType, $childTypeName)
    {
        if (!in_array($arrayType, $this->getContext()->getTypes())) {
            $dom = $this->getContext()->toDomDocument();

            $complexType = $dom->createElement('xsd:complexType');
            $complexType->setAttribute('name', $arrayType);

            $sequence = $dom->createElement('xsd:sequence');

            $element = $dom->createElement('xsd:element');
            $element->setAttribute('name', 'item');
            $element->setAttribute('type', $childTypeName);
            $element->setAttribute('minOccurs', 0);
            $element->setAttribute('maxOccurs', 'unbounded');
            $sequence->appendChild($element);

            $complexType->appendChild($sequence);

            $this->getContext()->getSchema()->appendChild($complexType);
            $this->getContext()->addType($arrayType);
        }
    }
protected function _addElementFromWsdlAndChildTypes($arrayType, $childTypeName)
    {
        if (!in_array($arrayType, $this->getContext()->getTypes())) {
            $dom = $this->getContext()->toDomDocument();

            $complexType = $dom->createElement('xsd:complexType');
            $complexType->setAttribute('name', $arrayType);

            $sequence = $dom->createElement('xsd:sequence');

            $element = $dom->createElement('xsd:element');
            $element->setAttribute('name', 'item');
            $element->setAttribute('type', $childTypeName);
            $element->setAttribute('minOccurs', 0);
            $element->setAttribute('maxOccurs', 'unbounded');
            $sequence->appendChild($element);

            $complexType->appendChild($sequence);

            $this->getContext()->getSchema()->appendChild($complexType);
            $this->getContext()->addType($arrayType);
        }
    }
protected function _addElementFromWsdlAndChildTypes ( $ arrayType , $ childTypeName ) { if ( ! in_array ( $ arrayType , $ this -> getContext ( ) -> getTypes ( ) ) ) { $ dom = $ this -> getContext ( ) -> toDomDocument ( ) ; $ complexType = $ dom -> createElement ( 'xsd:complexType' ) ; $ complexType -> setAttribute ( 'name' , $ arrayType ) ; $ sequence = $ dom -> createElement ( 'xsd:sequence' ) ; $ element = $ dom -> createElement ( 'xsd:element' ) ; $ element -> setAttribute ( 'name' , 'item' ) ; $ element -> setAttribute ( 'type' , $ childTypeName ) ; $ element -> setAttribute ( 'minOccurs' , 0 ) ; $ element -> setAttribute ( 'maxOccurs' , 'unbounded' ) ; $ sequence -> appendChild ( $ element ) ; $ complexType -> appendChild ( $ sequence ) ; $ this -> getContext ( ) -> getSchema ( ) -> appendChild ( $ complexType ) ; $ this -> getContext ( ) -> addType ( $ arrayType ) ; } }
Append the complex type definition to the WSDL via the context access

@param  string $arrayType
@param  string $childTypeName
@return void
Append the complex type definition to the WSDL via the context access