The error is "There was an error generating the XML document.". I think there is no need to serialize a class before sending it to a webservice.But im not sure of nested classes.Please give me some solution.
Here is my class:
The inner class is :
Here is my class:
Code:
public class StudentDO { private int _iStudentKey; private string _strStudentName; private string _strSchoolName; private string _strDistrictName; private bool _bIsStudentActive; private bool _bIsSpecialED; . . . private Object[][] _objStudentScores; public StudentDO() { this._iStudentKey = 0; this._strStudentName = string.Empty; this._strSchoolName = string.Empty; this._strDistrictName = string.Empty; this._bIsStudentActive = false; this._bIsSpecialED = false; this._bIsEnglishLearner = false; this._objStudentScores = new Object[10][]; } public int StudentKey { get { return this._iStudentKey; } set { this._iStudentKey = value; } } . . . public Object[][] StudentScores { get { return this._objStudentScores; } set { this._objStudentScores = value; } } } }
Code:
public class StudentScoresDO { private bool _bIsScoreExists; private bool _bIsScoringCompleted; private bool _bIsScoresEnteredByAnotherTeacher; private int _iTeacherKey; private string _strTeacherName; private string _strComments; private Object[][] _objItemScores; }
Comment