I am currently using the following in my nusoap server file:
$server->wsdl->addComplexType(
'member',
'complexType',
'struct',
'all',
'',
array(
'ID' => array('MemberInfo' => 'ID', 'type' => 'xsd:int'),
'FIRST_NAME' => array('MemberInfo' => 'FIRST_NAME', 'type' => 'xsd:string'),
'LAST_NAME' => array('MemberInfo' => 'LAST_NAME', 'type' => 'xsd:string')
)
Which returns:
<ID xsi:type="xsd:int">1</ID>
<FIRST_NAME xsi:type="xsd:string">John</FIRST_NAME>
<LAST_NAME xsi:type="xsd:string">Doe</LAST_NAME>
How can I modify this to receive the following output:
<ID xsi:type="xsd:int">1</ID>
<NAME>
<FIRST_NAME xsi:type="xsd:string">John</FIRST_NAME>
<LAST_NAME xsi:type="xsd:string">Doe</LAST_NAME>
</NAME>