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 3974972
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:37:50+00:00 2026-05-20T04:37:50+00:00

For a project I am doing, I am using a SOAP service to access

  • 0

For a project I am doing, I am using a SOAP service to access some data from another system. I added the SOAP service as a web reference to my ASP.NET (C#) project.

Now, the service is kinda complicated, because a user has to be authenticated first with a cookie (don’t ask). So what we did was:

  • The user accesses our website.
  • Website redirects the user to a logon page on the server where the service is located.
  • User logs on, and a FormsAuthentication.SetAuthCookie is performed
  • User is redirected back to our site. Which then forwards the user to a page which should contain data from the webservice.

That page instantiates the webservice as an object like this:

MyService.MyServiceservice = new MyService.MyService();

Then I put the credentials in (now I do it hardcoded):

service.PreAuthenticate = true;
service.Credentials = new NetworkCredential("Wim", "mypass");

When I call a method on that service, I want the Global.asax on the server containing the server, to be able to “catch” the username and password from the request. But somehow I cannot fetch it.

Don’t ask why it has to be done like this, lets call it .. unfortunate 😛

Does anyone know how to fetch the username and password from that request on the server side, preferable in the Global.asax Application_BeginRequest.

  • 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-20T04:37:50+00:00Added an answer on May 20, 2026 at 4:37 am

    What authentication mode is the service using? Basic, Digest? etc.

    If it is basic, then the username and password will be in the http header as a Base64 encoded string that will look something like GWxhCGRpbjpvcGVuIFNlc2FtZG==.

    You’ll need to decode it and then you’ll see the username and password in this format user:password.

    Where are you looking/expecting to find the username and password?

    As a side note:
    If you’re writing the service as well, then you should probably use an “Authentication” module rather than doing it in Global. hook into the OnAuthenticate event of global in an HttpModule and do the authentication there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small project I am doing in Python using web.py. It's a
I'm doing a project using ActionScript 2 where I'm loading in text from an
I am doing project in vb.net using ms access database I used one query
I'm having some problems with a project I'm doing using Google Maps. I have
I am doing project in vb.net using ms access I used listview to display
I am doing project on heart disease prediction system. here am using Cleveland Heart
I am using My-eclipse and doing a struts project there is no syntax error
im using drupal 6.15 and doing my first project in drupal . i got
I'm doing a personal, just for fun, project that is using screen scraping to
I'm setting up a C++ project, on Ubuntu x64, using Eclipse-CDT. I'm basically doing

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.