Hi,
I just wanted to check Camel 2.7 HTTP component to route JMS message payload
to a HTTP service. The configuration below works fine, but the service
requires to be authenticated.

<route>
            <from uri="activemq:my.queue"/>
            <setHeader headerName="CamelHttpMethod">
                <constant>POST</constant>
            </setHeader>
            <to uri="http://server:8080/service"/>
</route>

So, I am using another configuration inside of the camelContext to invoque
the service with "basic" authentication, but... the requests fail. I got a
HTTP 401.

<properties>
                        <property key="http.authMethodPriority"
value="Basic"/>
                        <property key="http.authMethod" value="Basic"/>
                        <property key="http.authUsername" value="dummy"/>
                        <property key="http.authPassword" value="pass"/>
</properties>

<route>
            <from uri="activemq:my.queue"/>
            <setHeader headerName="CamelHttpMethod">
                <constant>POST</constant>
            </setHeader>
            <to uri="http://server:8080/authservice"/>
</route>

I'll be pleased, if anyone can help me out on this!

Pd: I checked this link out without any success!. 
http://camel.465427.n5.nabble.com/http-component-with-authentication-td475994.html
  
Cheers 

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

Reply via email to