[esb-java-user] injecting message

Javier López del Castillo Caymares jlcc at softel.cu
Tue Jul 13 06:28:51 PDT 2010


Hello:

A have a task where I inject a message to synapse environment, the
message is a web service call, I need to get the response. Could any
body tell me what to do?

here is the code:

...

MessageContext mc = synapseEnvironment.createMessageContext();
mc.setTo(new EndpointReference(this.do));
mc.setSoapAction(this.soapAction);
synapseEnvoronment.injectMessage(mc);

...


it works, the service is invoked, but I don't know how to get the
result.

thx and best regards.

jlcc





More information about the Esb-java-user mailing list