Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 27th, 2006, 07:36 PM
Registered User
Join Date: Nov 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access underlying HTTP headers in web service.

Hi all,

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.

Host: www.yournamehere.com
Authorization: Basic userid:password
Content-Type: text/xml
Content-Length: yyy

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!

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WHat is "http headers"? gilgalbiblewheel Classic ASP Databases 1 September 14th, 2005 11:59 AM
Underlying connection close problem - HTTP Send vivjohar Biztalk 0 August 22nd, 2005 11:47 AM
Web Service to accept HTTP-Get jasonfisher .NET Web Services 1 June 9th, 2005 09:31 AM
Call the Java Web Service using HTTP-POST/GET anand_indya J2EE 0 January 17th, 2005 08:23 AM
Simple HTTP POST .Net web service? DaveCollinsPenchant .NET Web Services 1 September 10th, 2004 04:46 PM

All times are GMT -4. The time now is 09:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.