My goal is to exchange the following info with ASMX service:
1. SQL Server login credentials (user name, password, database etc)
2. ValidationException and other exception message texts.
I think that best way is not use message headers at all.
So I created special type
class MessageHeader {
public string User, Class, ExceptionText;
...
}
and pass this as ref parameter to every web method call
List<Customer> GetCustomers( ref header, ... )
Ugly, but seems to be only solution.
Andrus.