Return Table or Array of class of Table Type from AIF service

i have implemented service methods in AIF . when i return list of class worked for me .

i am trying to expose the table rows through AIF service method . should i create class of that table type and return list or just return the Table .

please hepl. this is in ax 2012

any help?

you can expose any field through AIF webservice using [DataMemberAttribute] and it has to be wrapped inside a Class which will have a [DataContractAttribute] .

here is the link for explanation.

http://msdn.microsoft.com/en-us/library/gg844225.aspx

any comments.