Create General Journal in AX 2012 from AX 2009 using X++ and webservices
Recently i came across a requirement where i need to create a daily general journal entry in AX 2012 for the data entered on custom screen in AX 2009. To achieve this, we have different options. Initially we thought of making use of AIF and XML files but we want to see the journal created with immediate effect. So decided to consume the AX2012 AIF webservice WSDL URI directly in AX 2009 using X++ code. So below are the steps we followed. Create the Inbound service port for Ledger general journal service. Use the service operation create from LedgerGeneralJournalService . It is advisable to enable the include exceptions in fault flag to get the error message under troubleshoot fast tab. Activate the port. Copy the dll file created for inbound port from the AOS server (Typically the folder path would be - C:\Program Files\Microsoft Dynamics AX\60\Server\<your server>\bin\XppIL\AppShare\ServiceGeneration\<YourAIFPortName.dll...