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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:40:45+00:00 2026-05-21T02:40:45+00:00

I have a service provider that requires a non-standard Authorization Type for their web

  • 0

I have a service provider that requires a non-standard Authorization Type for their web service.

Instead of Basic, Digest, NTLM, etc., they require “Basic API Access.”.

I have tried the code below and used Fiddler to check the web service request.

It does not seem that any custom strings can be used

    Binding avail = new Binding();
    avail.Url = "https://amer.webservicesxx.com/Availability";

    NetworkCredential netCredential = new NetworkCredential("abc", "def");
    Uri uri = new Uri(avail.Url);

    CredentialCache cred = new CredentialCache();
    cred.Add(uri, "Basic API Access", netCredential);
    avail.Credentials = cred;

    SearchRsp response = avail.service(request);

POST https://amer.webservicesxx.com/Availability HTTP/1.1

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 4.0.30319.1)
VsDebuggerCausalityData:
uIDPo+CJPwpspBxKp939c…
Content-Type: text/xml; charset=utf-8
SOAPAction: “”
Host: america.webservicesxx.com
Content-Length:
658
Expect: 100-continue

?xml version=”1.0″ encoding=”utf-8″?> ?soap:Envelope
xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsi=”http://www.w3.org/20 01/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”> …
?/soap:Envelope>

It is missing the …

Authorization: Basic API Access/dUFQSS04NDA0NTk2MDk6WiFyYzBuZDg0…

…line in the header.

If I just use "Basic" it adds the Authorization line properly, but is rejected by the service provider.

Is this the correct syntax to add an Authorization: header to the Soap transaction?

  • 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-21T02:40:45+00:00Added an answer on May 21, 2026 at 2:40 am

    I needed to replace data in the web request.

    protected override System.Net.WebRequest GetWebRequest(Uri uri)
    {
         WebRequest request = base.GetWebRequest(uri);
         request.Headers.Add("Authorization: Basic API Access dUFQSS04NDA0NT...");
    
         return request; 
     }
    

    inside the web service reference class.

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

Sidebar

Related Questions

We have a web service that provides auto insurance quotes and a company that
I'm building a web application that requires users to provide their location (similar to
I have a fully functioning Android widget that consists of a service provider class,
I have a web application built on ASP.NET MVC framework which requires a service
I have an application that authenticates against a third party web service by sending
I'm creating a web service with Rails 3.1 that requires authenticated user accounts for
Do we have any API or service provider which will let us know the
I have the following bean defined: <sec:authentication-manager alias=authenticationManager> <sec:authentication-provider user-service-ref=userDetailsService /> </sec:authentication-manager> I guess
I have a wcf web service and I need to provide the client with
I currently have service classes that look something like this public class UserService :

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.