如需了解有关该主题的人的信息,Jacob Proffitt的回复看起来就像是要走的路。从这里Dynamics GP的文件一剪断:
catch(SoapException soapErr)
{
// If a validation exception occurred, the logid will be in a child node
if(soapErr.Detail.HasChildNodes == true)
{
// Create a guid for the logid value in the soap exception
Guid guid = new Guid(soapErr.Detail.InnerText);
// Get the validation result object
validationResult = wsDynamicsGP.GetLoggedValidationResultByKey(guid, context);
// Display the number of validation exceptions
MessageBox.Show("Number of validation exceptions: " +
validationResult.Errors.Length.ToString());
}
}
但在我引用的情况:GETCUSTOMER与unexisting ID,行 “soapErr.Detail.HasChildNodes” 是假的,因此失败。 。
web服务似乎满搞笑的行为,这将需要更长的时间比我预期:(
没有这个错误Dynamics GP的是扔我。 – pmlarocque 2009-01-15 21:26:24