01.07.2010, 22:07 | #1 |
Участник
|
Pawan's Ax blog: HOW To Do Debugging In AIF
Источник: http://pawansaxblog.blogspot.com/201...ng-in-aif.html
============== IF we want to do debugging in AIF then follow the following steps.This is for Inbound processing 1.Go to AOT->Classes->AIFInBoundProcessingService 2.Go to method runAsWrapper 3.Comment the following lines in method // BP deviation documented // runas(axaptaUserId, // classnum(AifInboundProcessingService), // staticmethodstr(AifInboundProcessingService, processAsUser), // messageIdContainer); and replace this with the following line AifInboundProcessingService::processAsUser(messageIdContainer); 4. Make the processAsUser method public from private public static void runAsWrapper(AifWindowsUser runAsUserId, container messageIdContainer) { AifGatewayQueue gatewayQueue; userId axaptaUserId; AifMessageId messageId; int messageIdContainerIdx = 1; AifMessage errorMessage; AifInfoLog aifInfoLog; SysExceptionLog exceptionLog; ; aifInfoLog = new AifInfoLog(); try { // Convert to Axapta UserId axaptaUserId = AifEndpointUser::getAxaptaUser(runAsUserId).Id; new RunAsPermission(axaptaUserId).assert(); // BP deviation documented // runas(axaptaUserId, // classnum(AifInboundProcessingService), // staticmethodstr(AifInboundProcessingService, processAsUser), // messageIdContainer); AifInboundProcessingService::processAsUser(messageIdContainer); CodeAccessPermission::revertAssert(); Источник: http://pawansaxblog.blogspot.com/201...ng-in-aif.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|