hi,
consider following code..
[Serializable]
public class Student
{
private string studentName;
private double gpa;
public Student()
{
}
public string StudentName
{
get{return this.studentName;}
set { this.studentName = value; }
}
public double GPA
{
get { return this.gpa; }
set { this.gpa = value; }
}
}
private ArrayList studentList = new ArrayList();
[WebMethod]
public void AddStudent(Student student)
{
studentList.Add(student);
}
[WebMethod]
public ArrayList GetStudent()
{
return studentList;
}
I want to consume that web service using simple C# client form application. I can't get the student list using following code segment..
MyServiceRef.Student student = new Consuming_WS.MyServiceRef.Student();
MyServiceRef.Service1SoapClient client = new Consuming_WS.MyServiceRef.Service1SoapClient();
any idea..??
Thank in advance!