diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-19 08:54:24 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-19 08:54:24 +0000 |
commit | 200c46777a4b72db79b074382ec84f2fd93cba9a (patch) | |
tree | 6eb8665e7a29976efe822d1b02726a37270b48c7 | |
parent | fb1b389ce5736652924e26db726b37cf846da960 (diff) |
TUSCANY-3309 - apply patch from Chad Phillips to add the SOAP headers to the Tuscany message so that interceptors can look at the SOAP headers in the chain. Thanks for the patch Chad.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@826612 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java b/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java index 643898bcde..456001e615 100644 --- a/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java +++ b/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java @@ -683,6 +683,12 @@ public class Axis2ServiceProvider { //FIXME: can we use the Axis2 addressing support for this? SOAPHeader header = inMC.getEnvelope().getHeader(); if (header != null) { + List<Object> hdrList = msg.getHeaders(); + Iterator it = header.getChildElements(); + while (it.hasNext()) { + hdrList.add(it.next()); + } + OMElement from = header.getFirstChildWithName(QNAME_WSA_FROM); if (from != null) { OMElement callbackAddrElement = from.getFirstChildWithName(QNAME_WSA_ADDRESS); |