Public Class wsResponseHandler Public ReturnCode As Integer = 0 Public Results As Array Public ErrorMessage As String = "Initiated" End ClassIn most (but not all) cases the Web Service returns an object that has a return code and an array of "entity" objects which vary depending on the call made. Where the Web Service does not return an object I would like to convert the response to that VFP gets as standard response every time. Also the call to the Web Service may fail in which case I want to store my own ReturnCode and ErrorMessage.
WsResults.CopyTo(MyResponse.Results,1)
And various other ideas that I could think of but without success. The above erorrs in .NET ("value cannot be null.") and anything else I try VFP can not see the results objects.