26 #require_once "Zend/Soap/Wsdl/Strategy/Abstract.php"; 48 #require_once "Zend/Soap/Wsdl/Exception.php"; 50 "Cannot add a complex type %s that is not an object or where ".
51 "class could not be found in 'DefaultComplexType' strategy.",
$type 58 $defaultProperties =
$class->getDefaultProperties();
60 $complexType = $dom->createElement(
'xsd:complexType');
61 $complexType->setAttribute(
'name',
$type);
63 $all = $dom->createElement(
'xsd:all');
65 foreach (
$class->getProperties() as $property) {
66 if ($property->isPublic() && preg_match_all(
'/@var\s+([^\s]+)/m', $property->getDocComment(), $matches)) {
72 $element = $dom->createElement(
'xsd:element');
73 $element->setAttribute(
'name', $propertyName = $property->getName());
77 if ($defaultProperties[$propertyName] ===
null) {
78 $element->setAttribute(
'nillable',
'true');
85 $complexType->appendChild($all);
86 $this->
getContext()->getSchema()->appendChild($complexType);
$_option $_optionId $class