tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottk...@apache.org
Subject svn commit: r1209627 - /tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
Date Fri, 02 Dec 2011 18:34:00 GMT
Author: scottkurz
Date: Fri Dec  2 18:34:00 2011
New Revision: 1209627

URL: http://svn.apache.org/viewvc?rev=1209627&view=rev
Log:
Make commit showing more clearly that wsa:ReferenceParameters aren't handled correctly and
that this is a TODO.

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java?rev=1209627&r1=1209626&r2=1209627&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
Fri Dec  2 18:34:00 2011
@@ -310,6 +310,7 @@ public class JAXWSBindingInvoker impleme
 
         if (isInvocationForCallback(msg)) {
             addWSAToHeader(sh, toAddress, msg);
+            addWSARefParms(sh, msg);
             addWSAActionHeader(sh, action);
             addWSARelatesTo(sh, msg);
         } // end if
@@ -379,28 +380,16 @@ public class JAXWSBindingInvoker impleme
         // sh.addChild(wsaToOM);
         SOAPHeaderElement toH = sh.addHeaderElement(QNAME_WSA_TO);
         toH.setTextContent(address);
+    } // end method addWSAToHeader
 
-        // Deal with Reference Parameters, if present - copy to the header
-        // without the wsa:ReferenceParameters wrapper
-        // OMElement refParms = (OMElement) msg.getHeaders().get(WS_REF_PARMS);
-        // Iterator ces = sh.getChildElements(new QName(WSA_FINAL_NAMESPACE,
-        // WS_REF_PARMS));
-        Iterator<SOAPElement> ces = sh.getChildElements();
-        while (ces.hasNext()) {
-            SOAPElement se = ces.next();
-            if (WS_REF_PARMS.equals(se.getElementQName().getLocalPart())) {
-                // if( refParms != null ) {
-                Iterator<SOAPElement> children = se.getChildElements();
-                while (children.hasNext()) {
-                    SOAPElement node = (SOAPElement)children.next();
-                    toH.addChildElement(node);
-                }
-                // } // end if
-            }
-        }
+    protected void addWSARefParms(SOAPHeader sh, Message msg) throws SOAPException {  
+
+        // Not implemented and so will not pass compliance test BWS_5006.
 
-    } // end method addWSAActionHeader
 
+    } // end method addWSARefParms
+    
+    
     private void addWSAActionHeader(SOAPHeader sh, String action) throws SOAPException {
         // Create wsa:Action header which is required by ws-addressing spec
 



Mime
View raw message