Awesome!!
thanks for the clues. It works!

Final configuration is something like this:

 <route>
            <from uri="direct:ntcs.powerservice.queue"/>
            <setHeader headerName="Content-Type">
                <constant>application/xml</constant>
            </setHeader>
            <setHeader headerName="CamelHttpMethod">
                <constant>POST</constant>
            </setHeader>
            <to uri="http://server:8080/authservice"/>
 </route>


 <bean id="httpAuth"
class="org.apache.camel.component.http.HttpConfiguration">
        <property name="authMethod" value="Basic"/>
        <property name="authUsername" value="user"/>
        <property name="authPassword" value="password"/>
   </bean>

   <bean id="http" class="org.apache.camel.component.http.HttpComponent">
        <property name="camelContext" ref="camel"/>
        <property name="httpConfiguration" ref="httpAuth"/>
   </bean>



Cheers

--
View this message in context: 
http://camel.465427.n5.nabble.com/HTTP-component-Authentication-tp4782223p4785932.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to