トピックに興味のある人への情報については、JacobProffittの応答は進むべき道のように見えます。DynamicsGPドキュメントのスニッパーは次のとおりです。
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());
}
}
しかし、私が引用した場合:存在しないIDを持つGetCustomerの場合、「soapErr.Detail.HasChildNodes」の行はfalseであるため、失敗します。
Webサービスはおかしな振る舞いでいっぱいのようです、これは私が予想したよりも長くかかります:(。