Results 1 to 7 of 7

Thread: 1 Outbound Webservice Gateway, Multiple Credentials

Threaded View

  1. #1
    Join Date
    Nov 2008
    Location
    Swansea, Wales
    Posts
    204

    Default 1 Outbound Webservice Gateway, Multiple Credentials

    Can anyone help, I can't decide the best way to do this.

    I have a web service that I'm consuming and it's secured via HTTP Basic so I have an outbound web service gateway wired up with Apache http client (with usernamepassword credentials set) as the message sender. All works fine. The problem is that depending on a message header I need to provide different credentials. So one message might be with user A's credentials and another with user B's. I can't seem to dynamically set these at runtime so I thought about having multiple outbound gateways configured with the different credentials and then routing accordingly. Whilst this is fine in development I'm not sure how this will work in production because I don't want the production support team to have to modify Spring config files every time a new set of credentials needs to be added. They're happy changing property files across environments or having different database scripts but don't seem happy changing config files. Any suggestions??

    edit: I'm thinking of maybe writing a custom namespace handler to do this with a comma separated property of "headervalue,username,password,headervalue,usernam e,password,......" and then creating the required gateways
    Last edited by rhart; Nov 15th, 2010 at 05:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •