Thursday, February 16, 2012

How to send AIF Inbound and Outbound messages manually

Inbound:
static void RunAIFInbound(Args _args)
{
    ;
    // read the messages
    new AifGateWayReceiveService().run();
    // process the messages in queue
    new AifInboundProcessingService().run();
    info("done");
}

Outbound:

static void  RunAIFOutbound(Args _args)
{
    ;
    // process messages in queue
    new AifOutboundProcessingService().run();
    // send messages
    new AifGateWaySendService().run();
    info("done");
}