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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:23:23+00:00 2026-06-13T07:23:23+00:00

I didn’t know how to title this question – I am making a request

  • 0

I didn’t know how to title this question – I am making a request to PayPal’s Express Payment API. I’m using their dll that helps make the request and parse the response. The instructions for their code to work is to add you authorization credentials in the web.config file. I have done so. My problem is that I want to be able to edit these credentials that are being set dynamically (probably got from SQL) because we are going to allow different users to enter their API credentials. Sending the request to PayPal looks like this

    Dim wrapper As New SetExpressCheckoutReq()
    wrapper.SetExpressCheckoutRequest = request
    Dim service As New PayPalAPIInterfaceServiceService()
    Dim setECResponse As SetExpressCheckoutResponseType = service.SetExpressCheckout(wrapper)

There’s not much room in there to edit the header of the request, because PayPalAPIInterfaceServiceService() is defined in their dll and applies its own header based on the credentials in the web.config.

So, my question is, is there a way to point in the web.config to another location when it looks in web.config? I’m not to sure this is possible. Also, is there any way to edit the header of a request that is defined in a dll without changing the dll (to stay pci compliant)

Here is the line in the web.config:

 <account apiUsername="****" apiPassword="****" apiSignature="****"/>

Edit:

I know it is bad to add or edit web.config dynamically , I was looking more for a way to point to another location that can be edited. Like in C# code you could write Settings["string"] and that points into the web.config. Is there a way in the web.config to point to a location in the project , and this location could be changed dynamically

  • 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-06-13T07:23:25+00:00Added an answer on June 13, 2026 at 7:23 am

    I agree with iefpw that modifying a web.config file manually is bad news, but since you asked, WebConfigurationManager provides the functionality you are looking for.

    That class has a Save method that can be called after you’ve made your changes. I’ve only used WebConfigurationManager for reading web.config files, so don’t have a code example for you. Good luck.

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

Sidebar

Related Questions

I didn't find an answer to this question because I don't know if I'm
Didn't really know how to title this. First time writing a gem so not
Didn't even know how to exactly phrase this question, but here is the the
I didn't really know how to formulate the title. But this is my problem.
I didn't know a good title for my problem, this is why I didn't
I didn't really know how to phrase this question, its quite strange. I have
Didn't know how else to put this. Say I have a JavaScript method that
I didn’t found short form for this question as subject… Is it possible to
I didn't find an answer on the net and i hope this question have
I didn't find much in tutorials on this specific question.. So I have a

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.