Search code examples
wso2esbapache-synapse

add http request header an WSO2 proxy service


I have a proxy service who uses an XSLT mediator, I want to add a request header to it, this information representes a basic HTTP authentication : Authorization:Basic YWRtaW46YWRtaW4= The last key is created with a login 'admin' and a password 'admin'. How can I add this header to my request in the proxy service as a get request so I can authenticate my proxy before doing the xslt transformation. Thanks


Solution

  • How can I add this header to my request
    

    You should add this as BasicAuth header in your request. If you use SOAP UI, you can see the options to add a SOAPHeader elements where, provide as Authorization :Basic XXX