Joe2013
Joe2013

Reputation: 997

Apache CXF - Global HTTP Settings

Hi I have a Webservice exposed in FUSE ESB using Apache CXF endpoint. Client is required to pass the user name as password as below. Please advice How I can read this in my server from the Camel Exchange object.

((BindingProvider) serviceMnmtApi).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "admin");
((BindingProvider) serviceMnmtApi).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "password");

Upvotes: 0

Views: 113

Answers (1)

Willem Jiang
Willem Jiang

Reputation: 3291

If you are using JBoss Fuse 6.1, you should be able to setup the the username and password from the endpoint URI option. It is addressed in CAMEL-7145.

Upvotes: 0

Related Questions