To retrieve a list of attribute groups, use a request with the AttributeGroupListConfig type.
<AttributeGroupListConfig Id="?">
<StateName>?</StateName>
</AttributeGroupListConfig>
where:
To retrieve a list of groups:
<Request xmlns="http://www.endeca.com/MDEX/conversation/3/0"> <State/> <AttributeGroupListConfig Id="AttrGroups"/> </Request>
<cs:Results ...>
<ns:State .../>
<cs:AttributeGroupList Id="AttrGroups">
<cs:GroupSummary Key="WineGroup" Cardinality="4">
<cs:Record>
<cs:attribute name="system-group_DisplayName" type="mdex:string">Wine Refs</cs:attribute>
<cs:attribute name="system-group_Key" type="mdex:string">WineGroup</cs:attribute>
</cs:Record>
<cs:GroupMembers>
<cs:attribute name="mdex-property_Key">WineType</cs:attribute>
<cs:attribute name="mdex-property_Key">Wine</cs:attribute>
<cs:attribute name="mdex-property_Key">Region</cs:attribute>
<cs:attribute name="mdex-property_Key">Flavors</cs:attribute>
</cs:GroupMembers>
</cs:GroupSummary>
</cs:AttributeGroupList>
</cs:Results>
In this example, one group (named WineGroup) is returned. The Cardinality attribute specifies the number of attributes in the group. The attributes for each group member are also listed.