I have this method RaceDaySimple[] raceDay that I'm trying to call:
I want to display the content on a web page so I have tried with this:
But the only thing that gets displayed is this:
WebServiceClient.InformationServiceReference.RaceDaySimple
So actually what I want to be displayed is the informaton that this method provides. It should Fetch basic information about some racedays/meetings.
Like this:
I guess
...wouldn't be enough to display everything but I think I should at least get some kind of value displayed.
So how do I access this method properly and display the information about the racedays/meetings, that this web service provides?
C#:
public partial class RaceDayCalendarSimple : object, System.ComponentModel.INotifyPropertyChanged {
private RaceDaySimple[] raceDayField;
private AtgDateTime timestampField;
/// <remarks/>
[System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=0)]
/*==> */public RaceDaySimple[] raceDay {
get {
return this.raceDayField;
}
set {
this.raceDayField = value;
this.RaisePropertyChanged("raceDay");
}
}
}
I want to display the content on a web page so I have tried with this:
C#:
namespace WebServiceClient
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
InformationServiceReference.PartnerInfoServicePortClient pbs = new InformationServiceReference.PartnerInfoServicePortClient();
pbs.ClientCredentials.UserName.UserName = "Username";
pbs.ClientCredentials.UserName.Password = "Password";
test.InnerHtml = pbs.fetchRaceDayCalendarSimple().raceDay[0].ToString(); // Trying to call the method by doing this
}
}
}
But the only thing that gets displayed is this:
WebServiceClient.InformationServiceReference.RaceDaySimple
So actually what I want to be displayed is the informaton that this method provides. It should Fetch basic information about some racedays/meetings.
Like this:
I guess
C#:
test.InnerHtml = pbs.fetchRaceDayCalendarSimple().raceDay[0].ToString();
So how do I access this method properly and display the information about the racedays/meetings, that this web service provides?