diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-03 18:57:24 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-03 18:57:24 +0000 |
commit | 5f29c7f5157b7d36b77f9e1f4de78ecfbcd657b7 (patch) | |
tree | 39e26308d3bd26c16e2cff8a2806f1944bf9f291 /sca-java-2.x/trunk | |
parent | efb0ddbc01fad41b099dd923bcf2e0d5a8e4f5c3 (diff) |
Add context so interceptors on the binding wire can get at it
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@906173 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-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()); |