dynamics ax 2012 - AX2012 AIF X++ class that contains list of classes -
i have class structure class { list blist; }
class b { int i; }
i need aif web service operation accept single object may have multiple instances of b in it. error when try deploy service.
do need explicitly specify aifcollectiontypeattribute b in operation method though b contained in a?
you have use aifcollectiontypeattribute('return')
, type.
example:
[ datamemberattribute('attributevalues'), aifcollectiontypeattribute('return', types::class, classstr(attributevaluedc)), aifcollectiontypeattribute('attributevalues', types::class, classstr(attributevaluedc)) ] public list parmattributevalues(list _attributevalues = attributevalues) { attributevalues = _attributevalues; return attributevalues; }
Comments
Post a Comment