Consuming web service using C#- Unable to catch exception

Hi Everyone,

I have created a AIF- document service in AX 2009. I am doing a picking list registration update in AX. I have my code in try and catch in AX.


when I test the service in AX through a test job, I can able to catch the exception in the catch code. But, when I consume the service through C#, I can’t able to catch the exception. In other words, the code is not coming to the catch part.

I don’t know why I can’t catch exception when I am consuming the service.

Any suggestions would be helpful…

At the link below, there is the answer.

Practically, when an error is throw an error inside AIF sevice it is going to abort the outer transaction and go to the AIF catch clause, skipping all others.