you can try :
<bean id="httpAuth"
class="org.apache.camel.component.http.HttpConfiguration">
<property name="authMethod" value="Basic"/>
<property name="authUsername" value="username"/>
<property name="authPassword" value="password"/>
</bean>
<bean id="http" class="org.apache.camel.component.http.HttpComponent">
<property name="camelContext" ref="yourcontext"/>
<property name="httpConfiguration" ref="httpAuth"/>
</bean>
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-provide-basic-authoraizaton-user-password-in-Spring-DSL-to-acess-rest-webservice-tp5741597p5741776.html
Sent from the Camel - Users mailing list archive at Nabble.com.