Webservice 4个类和1个消费者展示

时间:2012-05-26 08:37:34

标签: c# web-services

我有一个webservice正在运行,在这个webservice中我添加了一个类文件(Class.cs) 在这个文件中有4个类,当客户端(消费者)连接到web服务时,我只能看到4个类中的4个。我已经多次重新发布了web服务,并且我还多次更新了webreference。我不明白我的错。 这是类文件的内容:

public class AnsweredQ
{
    public string Question { get; set; }
    public string Answer { get; set; }

    public AnsweredQ() { }

    public AnsweredQ(string _Question, string _Answer)
    {
        Question = _Question;
        Answer = _Answer;
    }
}
public class BadlyAnsweredQ
{
    public string Question { get; set; }
    public string[] Options { get; set; }
    public string BadAnswer { get; set; }

    public BadlyAnsweredQ() { }

    public BadlyAnsweredQ(string _Question, string[] _Options, string _BadAnswer)
    {
        Question = _Question;
        Options = _Options;
        BadAnswer = _BadAnswer;
    }
}
public class UnAnsweredQ
{
    public string Question { get; set; }
    public string[] Options { get; set; }

    public UnAnsweredQ() { }

    public UnAnsweredQ(string _Question, string[] _Options)
    {
        Question = _Question;
        Options = _Options;
    }
}
public class TrialNoobs
{
    public string User { get; set; }
    public DateTime TrialDate { get; set; }
    public bool Expired { get; set; }

    public TrialNoobs() { }

    public TrialNoobs(string _User, DateTime _TrialDate, bool _Expired)
    {
        User = _User;
        TrialDate = _TrialDate;
        Expired = _Expired;
    }
}

0 个答案:

没有答案