Hi,
I am relatively new to C# - I am highly experienced with X++ in Dynamics AX.
I created an AIF service inside AX which returns a list of data contract values. The data contract is structured with 2 string parameters. The DataContract attribute and DataMember attributes are assigned.
I created a console application and I am able to easily return the values however I am trying to create a web service wrapper which will consume this AX service and return the data contract values out to a third party application.
My issue is that on the web service I am not able to return the data contract values I get the error message system.NotSupportedException: Cannot serialize interface System.Collections.Generic.IEnumerable`1 *Name of my data contract value*
I need some direction on what to do, how do I go about taking the IEnumerable list of data contract values inside my web service to allow these to be output correctly as a list of data contracts comprising of 2 string values?
Thank you kindly
I am relatively new to C# - I am highly experienced with X++ in Dynamics AX.
I created an AIF service inside AX which returns a list of data contract values. The data contract is structured with 2 string parameters. The DataContract attribute and DataMember attributes are assigned.
I created a console application and I am able to easily return the values however I am trying to create a web service wrapper which will consume this AX service and return the data contract values out to a third party application.
My issue is that on the web service I am not able to return the data contract values I get the error message system.NotSupportedException: Cannot serialize interface System.Collections.Generic.IEnumerable`1 *Name of my data contract value*
I need some direction on what to do, how do I go about taking the IEnumerable list of data contract values inside my web service to allow these to be output correctly as a list of data contracts comprising of 2 string values?
Thank you kindly