Need to orchestrate 2 services that use basic authentication.
I am using a java class mediator to add authorization
(username/password) to
web services that requires basic auth over https. The Mediator adds the
username/password to
org.apache.axis2.context.MessageContext.TRANSPORT_HEADERS.
I have added certificates to Axis.
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 ?
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" ?
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 ?
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 ?
Could the following functionality be added to synapse:
<sequence name="composition" >
< sequence key = "WebService_1">
< sequence key = "WebService_2">
< ..... >
</sequence>
< proxy .... inSequence= "composition">