git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

soap inboud does not get soap outbound 's response


I have two routes in camel, route1 will send soap request to route2
What I am expecting route1 will get reponse from route2
But Altough route2 can send response (i see it in log ), but route1 could
not get it.

Any idea ? how to let route1 get response from route2?

route1

// SOAP_InBound -> XQuery(InBound-OutBound)->Soap_OutBound_Request
from(SOAP_ENDPOINT_IN_URI + "&dataFormat=CXF_MESSAGE")
.convertBodyTo(String.class)
.to("xquery:createRequest.xq" )
.to(SOAP_ENDPOINT_OUT_URI + "&dataFormat=MESSAGE");
route2
// Soap_OutBound->DummyResponse(OutBound->InBound)
from(SOAP_ENDPOINT_OUT_URI +
"&dataFormat=CXF_MESSAGE").convertBodyTo(String.class)
.setBody(simple("resource:classpath:dummyResponse.xml"))
.log(LoggingLevel.INFO, "#####  Response {body}  #####");