如需瞭解有關該主題的人的信息,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