[Sorry, some comments got stripped out of the posting.  The first call that
tries to use the HttpComponent fails; the 2nd call that provides basic auth
params in simple-recipientList succeeds.]

Thanks for the reply.  I tried your suggestion but it doesn't seem to work
for me.

This:

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

<routeContext id="my-route" xmlns="http://camel.apache.org/schema/spring";>
    
    <recipientList>           
<simple>*https2*://${in.headers[MY_SERVER_AND_PORT]}/rest/accounts/account/${in.headers[ACCOUNT_NUMBER]}/doSomethingToMyAccount</simple>
    </recipientList>

results in the following:

org.apache.camel.component.http.HttpOperationFailedException: HTTP operation
failed invoking
http://<myServerAndPort>/rest/accounts/account/<myAccountNumber>/doSomethingToMyAccount
with statusCode: 302, redirectLocation:
https://<myServerAndPort>/rest/accounts/account/<myAccountNumber>/doSomethingToMyAccount

and the basic auth parameters are never recognized after the redirect.

In both cases, the recipientList + simple combination don't seem to want to
accept the auth parameters in the HttpComponent.

I'm trying to do the auth config on each of the two http configurations in
the route instead of doing it on the component because the requirements are
different.

Many thanks once again for any suggestions you can offer.

Rick




--
View this message in context: 
http://camel.465427.n5.nabble.com/How-can-I-make-a-RecipientList-http-component-use-an-HttpConfiguration-tp5755116p5755121.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to