Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 215221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:27:00+00:00 2026-05-11T18:27:00+00:00

Specifically, I need to validate the incoming X.509 security certificate against a database to

  • 0

Specifically, I need to validate the incoming X.509 security certificate against a database to allow access to my web service. In order to do this, I need to get a copy of the certificate sent from the client. I think I know how to do that, if I can figure out how to get access to the http Request object — an intrinsic ASP.NET object.

I found the following code that describes how to create a component that will do this, and how to load it in the code-behind for the Page Load event on an aspx page. That’s great, I learned a lot from the article, but it still doesn’t address my problem — there is no web page, so no page load event.

HOW TO: Access ASP.NET Intrinsic Objects from .NET Components by Using Visual C# .NET
http://support.microsoft.com/kb/810928

I am using C# and .NET 3.5, but I am not using the advanced coding features of C# (lambdas, extension methods, etc). I just haven’t put in the time to learn how to use them yet…

Any tips, pointers, sample code would be much appreciated.
Thanks,
Dave

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:27:00+00:00Added an answer on May 11, 2026 at 6:27 pm

    If it’s an asmx web service (that is, the “page”/entry point is somefile.asmx, it should be as simple as accessing the request object from there.

    Example:
    In Visual Studio, create a web service application, and paste the following code into service1.asmx.cs: (the example below returns names of all of the headers that were in the web request)

    (below is the complete content of service1.asmx.cs)

    
    using System;
    using System.Web;
    using System.Web.Services;
    
    namespace WebServiceIntrinsicObjects
    {
        /// 
        /// Summary description for Service1
        /// 
        [WebService(Namespace = "http://tempuri.org/")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        [System.ComponentModel.ToolboxItem(false)]
        // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
        // [System.Web.Script.Services.ScriptService]
        public class Service1 : System.Web.Services.WebService
        {
    
            [WebMethod]
            public string HelloWorld()
            {
                // HERE'S THE LINE:  just get the request object from HTTPContext.Current (a static that returns the current HTTP context)
                string test = string.Join(",", HttpContext.Current.Request.Headers.AllKeys);
                return test;
            }
        }
    }
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to install MySQL_python 1.2.2 (I specifically need this version, not the current
@Column(name=DateOfBirth) private Date dateOfBirth; I specifically need the above code to create a column
I need to be able to determine when ContainsFocus changes on a Control (specifically
I need to perform a HTTP GET from PHP. More specifically, from within /index.php
I need to keep a couple of Jena Models (OntModels, specifically) synchronized across a
Why do we need to use: extern C { #include <foo.h> } Specifically: When
Has anyone worked with the StarTeam COM API (Specifically, intergrating with C#). I need
In a .NET 3.0 project, I need to make some calls via P/Invoke (specifically
Specifically this is regarding when using a client session cookie to identify a session
If I have a collection of database tables (in an Access file, for example)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.