Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

How to consume C# data contract class list in Ax 2012

$
0
0

Hello,

I had to make integration between 2 different Ax environment. I wrote an AIF service for one environment to read data and I wrote a C# class, I am getting data from AIF to C# by using data contract class and I am returning as data contract class list. When I added C# project to second Ax environment in Visual Studio C# Projects I can not consume the data which returning from C# project as data contract class list in x++. How can i consume C# list in X++?

I need to get data from this C# method in x++;

public List<ShipmentTableContract> getShipmentTable(string companyId)
{

    CallContext axCallContext = new CallContext();
    ShipmentIntegServiceClient axService = this.logonToService();
    axCallContext.Company = companyId;


    List<ShipmentTableContract> shipmentList = new List<ShipmentTableContract>();
    shipmentList = axService.getShipmentTable(axCallContext);

    return shipmentList;

}


Can anyone help?


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>