webservice MDL-23083 Zend SOAP does not support struct in the phpdoc

This commit is contained in:
jerome mouneyrac 2010-07-05 08:51:57 +00:00
parent 7d2b6e8cbe
commit e93b82d746

View file

@ -654,7 +654,7 @@ class '.$classname.' {
$type = 'string'; $type = 'string';
} }
} else if ($keydesc instanceof external_single_structure) { } else if ($keydesc instanceof external_single_structure) {
$type = 'struct'; $type = 'object|struct'; //only 'object' is supported by SOAP, 'struct' by XML-RPC MDL-23083
} else if ($keydesc instanceof external_multiple_structure) { } else if ($keydesc instanceof external_multiple_structure) {
$type = 'array'; $type = 'array';
} }
@ -680,7 +680,7 @@ class '.$classname.' {
$type = 'string'; $type = 'string';
} }
} else if ($function->returns_desc instanceof external_single_structure) { } else if ($function->returns_desc instanceof external_single_structure) {
$type = 'struct'; $type = 'object|struct'; //only 'object' is supported by SOAP, 'struct' by XML-RPC MDL-23083
} else if ($function->returns_desc instanceof external_multiple_structure) { } else if ($function->returns_desc instanceof external_multiple_structure) {
$type = 'array'; $type = 'array';
} }