diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java index 13a4033a0a..45374ae150 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java @@ -86,6 +86,7 @@ public class Axis2ServiceProvider implements Provider<OMElement> { Message msg = messageFactory.createMessage(); msg.setBody(args); msg.setOperation(op); + msg.setBindingContext(inMC); //FIXME: can we use the Axis2 addressing support for this? SOAPHeader header = inMC.getEnvelope().getHeader(); @@ -132,7 +133,7 @@ public class Axis2ServiceProvider implements Provider<OMElement> { from.setCallbackEndpoint(callbackEndpoint); } - Message response = endpoint.invoke(op, msg); + Message response = endpoint.invoke(msg); if(response.isFault()) { throw new InvocationTargetException((Throwable) response.getBody()); |