Hello,
I really hope that someone will be able to help me, because I'm desperate now!
I'm a student, graduating this year, and I'm working on a thesis where C#
Web Services are involved. I only have three weeks to finish it all!
My GUI and Web services were finished, but I hadn't tested them. So I linked
the GUI to the Web service and started testing them.
From the GUI, I called the Web service method:
[WebMethod]
[XmlInclude(type of(Tender)), XmlInclude(type of(Offer)),
XmlInclude(type of(Product))]
public ArrayList GetTenders(stri ng user, string password)
This method all tenders out of a database, and sends them back in an
ArrayList.
The class Tender looks like this:
public class Tender
{
#region Private fields
private string name;
private string surname;
private string hospital;
private string tenderID;
private DateTime date;
private DateTime dateLimit;
private ArrayList productList;
private ArrayList offerList;
#endregion
#region Constructors
public Tender()
{
this.name = "";
this.surname = "";
this.hospital = "";
this.tenderID = "";
this.productLis t = new ArrayList();
this.offerList = new ArrayList();
}
public Tender(string name, string surname, string hospital, DateTime date,
DateTime dateLimit, string tenderID)
{
this.name = name;
this.surname = surname;
this.hospital = hospital;
this.date = date;
this.dateLimit = dateLimit;
this.tenderID = tenderID;
this.productLis t = new ArrayList();
this.offerList = new ArrayList();
}
#endregion
// Getters and setters
}
The problem is that I receive an array containg arrays of XmlNodes as
returning value of the Web Service method GetTenders.
I really need the help from someone to solve this problem, and be able to
get the tender information back from the web service instead of the XmlNodes.
I've read several related questions in this discussion group, but none of
them helped me! I hope someone can help me!