I have a .NET web service to deliver, but the spec document says that basic authentication information of the form "username:password" will be sent in the HTTP header: e.g.
Authorization: Basic userid:password
As far as I can tell, my .asmx web service fires when the client app consumes it and calls one of its public WebMethods.
How can I interrogate the underlying HTTP request object to get headers at that level? The client says that in future the authentication will move into a proper SOAP header, but right now it resides in the HTTP header.
I'm beginning to suspect that what they've specced as a "web service" is in actuality a website, and the aspx pages receive HTTP POST requests, with XML content-types.
If it proves that I do have to get HTTP headers from within a .asmx web service, how is it done?
Sorry for the overly wordy request!