Здравствуйте, вот класс ...
Аутентификация в публичном классе
{
private string userField;
private string passwordField;
public string user
{
get
{
return this.userField;
}
set
{
this.userField = value;
}
}
public string password
{
get
{
return this.passwordField;
}
set
{
this.passwordField = value;
}
}
}
здесь веб-сервис:
[WebMethod]
public Vehicle[] getVehiculeList(Authentification authentification)
{
....
}
Здесь клиент и вызов веб-сервиса:
(Определен тот же класс, что и в веб-сервисе)
Authentification azz = new Authentification() ;
azz.user = "toto";
azz.password = "tata";
string aa = ws.getVehiculeList(azz);
выдает ошибку:
Ошибка 27 Наилучшее совпадение перегруженного метода для 'WSCL.localhost.Service1.getVehiculeList (WSCL.localhost.Authentification)' имеет недопустимые аргументы
и
Ошибка 28 Аргумент «1»: невозможно преобразовать из «WSCL.Authentification» в «WSCL.localhost.Authentification»
Любая помощь?
Спасибо большое!