Last active
August 29, 2015 14:10
-
-
Save davidalencar/19f716e19c0beabdaacd to your computer and use it in GitHub Desktop.
How to get AIF Service Full Exceptions Descriptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
/* CODE */ | |
} | |
} | |
catch (System.ServiceModel.FaultException<DAXLIMSInteg.SalesService.AifFault> axe) | |
{ | |
var errorMsg = new StringBuilder(); | |
foreach (var item in axe.Detail.InfologMessageList) | |
{ | |
errorMsg.AppendLine(string.Format("{0} - {1}", item.InfologMessageType, item.Message.Trim())); | |
} | |
/* GET ERROR MSG = errorMsg.ToString(); */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment