Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.

POST HTTP/1.1
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!



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





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