This post describes how to call the AIF sales order service from X++ code. The same approach can be used for calling any web service. In the AOT under the References node add a service reference specifying the wsdl location of the service, a .NET code namespace and a reference namespace. An example of a wsdl url is: http://myMachine.myDomain/MicrosoftDynamicsAXAif50/salesorderservice.svc?wsdl Once the reference has been created, in X++ create a new class that runs on the server. In a method in the class write the code that calls the service. An example of how to call the sales order service is below. Once the code in the class compiles close the AX client. Go to the Appl\Standard\ServiceReferences directory and copy the app.config and the generated assembly to the Server\bin directory. SalesOrder.SalesOrderServiceClient proxyClient; SalesOrder.AxdSalesOrder salesOrder; SalesOrder.AxdEntity_SalesTable salesTable; SalesOrder.AxdEntity_SalesLine salesLine; SalesOrder.AxdEntity...