AIF is strongly evolving as a Integration point for Ax 4.0. This is evident from the extent it is explored and posted in several blogs……… like
I am also putting in some effort these days exploring AIF, infact i was even successful in doing Inbound and Outbound operations. A general practice is to use batch processing for AIF Filesystem adapter, When you do development you might be tired of keep on invoking a batch job, instead you can write a job like this for outbound……….
static void AifOutboundJob()
and for Inbound
static void AifInboundJob()
this would help you much……..
If you want to debug for any errors in Aif then you have to do some code changes to any one of these classes AifInboundProcessingService or AifOutboundProcessingService depending upon the action you are carrying out.
in any of this class you would find a code like this (approx line num 60, 65) in the method run
just comment this code and change the scope of the static method processAsUser from the sames class to public and then call it exactly as below in the run method
this would allow you to debug the code in Aif and the Axd’s but make sure you delete these changes once you complete your debugging.
………………… Theres more to dig and more to know