Fix wsdl for array complex type
This commit is contained in:
parent
6718703ba5
commit
2b8f75b4ae
@ -239,6 +239,10 @@ class Dumper
|
||||
$rootElement->setAttribute('name', $type->getName());
|
||||
|
||||
$complexType = $this->document->createElement(static::XSD_NS.':complexType');
|
||||
if ($type instanceof ArrayOfType) {
|
||||
$complexType->setAttribute('name', $type->getName());
|
||||
}
|
||||
|
||||
$rootElement->appendChild($complexType);
|
||||
|
||||
//$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()
|
||||
|
Loading…
Reference in New Issue
Block a user