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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -