This content has been marked as final.
Show 1 reply
-
1. Re: Basic authentication on "To" endpoint in a camel route
ffang Mar 5, 2013 10:20 PM (in response to rvojjala)Hi,
I think you mismatch some concept.
The
"authMethod=Basic&authUsername=admin&authPassword=admin".
is used for http basic auth, that said, it will add username/password http header.
But from your description your external webservice is expecting ws-security UsernameToken header, it's soap header and has nothing to do http basic auth.
And I suggest you use camel-cxf endpoint to talk to external webservice, where you can easily configure the WSS4JInterceptor to add UsernameToken soap headers to the outbound message.
Freeman