tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r826612 - /tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java
Date Mon, 19 Oct 2009 08:54:24 GMT
Author: slaws
Date: Mon Oct 19 08:54:24 2009
New Revision: 826612

URL: http://svn.apache.org/viewvc?rev=826612&view=rev
Log:
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.


Modified:
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java?rev=826612&r1=826611&r2=826612&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java
Mon Oct 19 08:54:24 2009
@@ -683,6 +683,12 @@
         //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);



Mime
View raw message