I have the following code:
[WebMethod]
[SoapHeader("_webServiceAuth")]
public User GetUser(string username)
{
try
{
this._validationMethods.Validate(_webServiceAuth);
User user = new User(username);
return user;
}
catch (Exception ex)
{
throw ex;
}
}
As you can see, one would expect to receive a User as a responce when I do:
myUser = this.Service.GetUser(username);
But what I get is a request for a "GetUserRequest" instance, and get returned a "GetUserResponse" instance. Any help in why my object is not being send by my webservice?