我已经看到并通过了这个网站,但最终出现了一个错误
在服务中,我有网络方法
[WebMethod(MessageName = "AddWithMoreParam",Description="More parameters", EnableSession=true)]
public bool UpdateMovies(string userName, string role, string movieName, string releaseDate)
{
BlogController con = new BlogController();
BlogInfo info=new BlogInfo();
info.MovieName=movieName;
info.ReleaseDate=releaseDate;
return con.UpdateMovies(info);
}
[WebMethod(MessageName = "AddWithLessParam", Description = "Less parameters", EnableSession = true)]
public bool UpdateMovies(string movieName, string releaseDate)
{
BlogController con = new BlogController();
BlogInfo info = new BlogInfo();
info.MovieName = movieName;
info.ReleaseDate = releaseDate;
return con.UpdateMovies(info);
}
可能问题与 webservicebinding 有关,但我对此感到困惑,无法继续。