Anonymous - 2011-10-24

Hello,
I have following type added at nusoap server:

$server->wsdl->addComplexType(
'Image',
'complexType',
'struct',
'all',
'',
array(),
array(
array('name'=>'type', 'type'=>'xsd:string'),
array('name'=>'url', 'type'=>'xsd:string'),
array('name'=>'size', 'type'=>'xsd:string'),
array('name'=>'id', 'type'=>'xsd:string'),
array('name'=>'height', 'type'=>'xsd:int'),
array('name'=>'width', 'type'=>'xsd:int'),
)
);

As you can see, it has no subelements, all data is stored in attributes.
How to make simple return statement for method returning Image ?
For subelements I usually call

return array('SubEl1'=>'subEl1_value', 'SubEl2'=>'subEl2_value');

What's for attributes?
Thank you.