This content has been marked as final. Show 3 replies
The ResponseHeader holds the overall result of the web service, in the ResultCode, which is what you listed.
It also holds a list of tMessage entries via the Messages property/node, which contain the detailed errors. Each tMessage contains a MessageCode (e.g., "NUTRIENT_ANALYSIS_INVALID_SAMPLENUMBER") and a Description.
Yea I tried to use Console.WriteLine(responseHeader.Messages);, but just end up getting a console print of "tMessage". Any tips on unwinding the message out of that?
Messages is an array of tMessage objects. You need to iterate over the array and get the MessageCode and Description for each tMessage in the array.