Hi, This thread may help you. It shows you a way to add basic authentication using the scripting mediator.
http://www.nabble.com/how-to-use-groovy-script-to-mediate-in-synapse-to15066002.html#a15184531 Upul On Sat, Mar 8, 2008 at 9:58 AM, Jeff Davis <[EMAIL PROTECTED]> wrote: > Hi, > > I have a web service that uses HTTP Basic Authentication, and I can't, for > the life of me, figure out how that's supported within Synapse. Basically, > I > was just hoping to use Synapse as a proxy (or redirector) so that it would > add the credentials to the outbound web serivce call. I saw an example of > how Synapse can be configured, via a mediator, to check inbound messages > for > HTTP credentails, but not how to add them to outbound. I presume I can use > the Axis2MessageContext to do this, but I was trying to do it through > script, and I can't get seem to get at that object within the script (I > don't seem to have visibility to it). This seems like a common > requirement, > so maybe I'm just missing something. > > Thanks! > > jeff >
