Hi Kim
First of all, I must request that you subscribe [1] to the Synapse user
list before you post questions, to allow you to get the responses we
post back. I have copied this reply directly to your email address this
time.
Need to orchestrate 2 services that use basic authentication.
.....
This all works fine.
This requires client to authenticate preemptively - this itself is a
security threat and the 2 phase challenge is more secure, but not supported by
synapse.
Will this be fixed ?
Please raise a JIRA at [2] for this issue
However, I want to compose two web service that require this
authorisation. One provides input to the next.
Prior threads have suggested using the "callout" to do this. However it
appears that this does not work with above authorisation and over https.
I cannot authenticate the callout.
How Do I add the Auth Headers with "callout" ?
This is not yet supported, and I would always recommend the use of the
callout mediator only for a few specific cases where "blocking" a thread
of execution is ok.. Generally its always better to do your mediation
using the non-blocking variants for best performance
Given Callout does not work can you chain a sequence of Web Service
calls in any another way. It appears this question has been asked a number of
times and never answered. Sequential composition and chaining seems a basic
function of a ESB BUT Synapse can't do it ?
No it can :-) ..
Call Proxy from Client
--> Web Service 1
- use response to build message for:
--> Web service 2
Return final Result to Client
Is there a way to chain together calls ?
Since you've said this has been asked many times but never answered,
I've written an example for you here
http://adroitlogic.org/knowledge-base-synapse/11-message-chaining-with-synapse.html
cheers
asankha
[1] http://synapse.apache.org/mail-lists.html
[2] http://issues.apache.org/jira/browse/SYNAPSE
--
Asankha C. Perera
http://adroitlogic.org
http://esbmagic.blogspot.com