Fix wsdl for array complex type

This commit is contained in:
Gianluigi 'cocciagialla' Mammarella 2019-04-11 10:33:17 +02:00
parent 6718703ba5
commit 2b8f75b4ae
1 changed files with 5 additions and 1 deletions

View File

@ -239,6 +239,10 @@ class Dumper
$rootElement->setAttribute('name', $type->getName()); $rootElement->setAttribute('name', $type->getName());
$complexType = $this->document->createElement(static::XSD_NS.':complexType'); $complexType = $this->document->createElement(static::XSD_NS.':complexType');
if ($type instanceof ArrayOfType) {
$complexType->setAttribute('name', $type->getName());
}
$rootElement->appendChild($complexType); $rootElement->appendChild($complexType);
//$all = $this->document->createElement(static::XSD_NS.':'.($type instanceof ArrayOfType ? 'sequence' : 'all')); //$all = $this->document->createElement(static::XSD_NS.':'.($type instanceof ArrayOfType ? 'sequence' : 'all'));
@ -288,7 +292,7 @@ class Dumper
} }
} }
$this->domSchema->appendChild($rootElement); $this->domSchema->appendChild($type instanceof ArrayOfType ? $complexType : $rootElement);
} }
protected function addPortType() protected function addPortType()