
Hello All,
Hello all i am using a list of Enum exactly like the example below
[
DataMemberAttribute,
AifCollectionTypeAttribute('return', Types::Enum, enumStr(LogisticsLocationRoleType)),
AifCollectionTypeAttribute('_addressPurposes', Types::Enum, enumStr(LogisticsLocationRoleType))
]
public List parmAddressPurposes(List _addressPurposes = addressPurposes)
{
addressPurposes = _addressPurposes;
return addressPurposes;
}
I am using this in a datacontract and exposing the same datacontract in a custom service.
I am using this custom service in one of our c# project.
The problem i am facing is: In the service reference i am getting this as a list of string (example below)
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="ArrayOfLogisticsLocationRoleType", Namespace="http://schemas.datacontract.org/2004/07/Dynamics.AX.Application", ItemName="LogisticsLocationRoleType")]
[System.SerializableAttribute()]
public class ArrayOfLogisticsLocationRoleType : System.Collections.Generic.List<string> {
}
What should i do to have this list as a enum in the data contract as well as the service reference in our c# project. Any help would be great !!!
*This post is locked for comments
I have the same question (0)