AX Integration - Clarifications

Hello,

I am new to AX, I come From a CRM background, I need to start integration between AX and another software. I think the best way is to have 2 webservices talking with each other.

Does anyone have documents on how to integrate (as c# coding)? can you also provide me with Creating a Customer in the CustTable exemple? I manage to create a record in the dirPerson and another in the CustTable but I am not being able to link those 2 together.

I appreciate the fast response…

Thank you
Ali K. Barada

What’s your version of AX? Your options depend on that.

Also, instead of creating a new service, I would recommend using standard AIF document services. Customers are supported out of the box.

Hello Martin,

i am using AX 2012 R2. can you give me an exemple of customer creation? (including the needed relationships because i am finding difficulties with the dirPartyTable and dirPerson and so on)

Thank you…

Hello Martin,

1 quick question how can i start using this AIF domuent services?

The purpose of document services is to encapsulate relations and such things in document classes, so the calling code doesn’t have to care much about such details.

To create a customer from another application, go to System Administration > Setup > Services and Application Integration Framework > Inbound ports and create a new one. Then add Service operations you want - CustCustomerService.create in this case. Activate the endpoint and consume and call the service as usual. Find an example of its usage in Importing Customers, Vendors and Products in AX 2012.

If you wonder where services and their operations are defined, look to Services node in AOT.

The topic is much bigger, of course. Refer to Services and Application Integration Framework on MSDN and white papers about Services to learn more.

Hello Martin,

thanks for your reply, i followed the example you provided me with. But on the create action line code i am facing this error:

“{System.ServiceModel.FaultException`1[CreateCustProject.CustomerService.AifFault]: Request Failed. See the Exception Log for details. (Fault Detail is equal to CreateCustProject.CustomerService.AifFault).}”

Any ideas?