For information for people interested in topics, Jacob Profitt's answer looks like a way to go. here is the operator from the Dynamics GP documentation:
catch(SoapException soapErr)
{
if(soapErr.Detail.HasChildNodes == true)
{
Guid guid = new Guid(soapErr.Detail.InnerText);
validationResult = wsDynamicsGP.GetLoggedValidationResultByKey(guid, context);
MessageBox.Show("Number of validation exceptions: " +
validationResult.Errors.Length.ToString());
}
}
But in the case where I cited: GetCustomer with an impossible identifier, the string "soapErr.Detail.HasChildNodes" is incorrect, so it fails.
Web services seem full of ridiculous behavior, it will take longer than I expected: (.
source
share