Return-Path: X-Original-To: apmail-tuscany-commits-archive@www.apache.org Delivered-To: apmail-tuscany-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD2CD9A49 for ; Fri, 2 Dec 2011 18:34:24 +0000 (UTC) Received: (qmail 44910 invoked by uid 500); 2 Dec 2011 18:34:24 -0000 Delivered-To: apmail-tuscany-commits-archive@tuscany.apache.org Received: (qmail 44883 invoked by uid 500); 2 Dec 2011 18:34:24 -0000 Mailing-List: contact commits-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list commits@tuscany.apache.org Received: (qmail 44876 invoked by uid 99); 2 Dec 2011 18:34:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 18:34:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 18:34:22 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 679C9238889B for ; Fri, 2 Dec 2011 18:34:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@tuscany.apache.org From: scottkurz@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111202183400.679C9238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 ces = sh.getChildElements(); - while (ces.hasNext()) { - SOAPElement se = ces.next(); - if (WS_REF_PARMS.equals(se.getElementQName().getLocalPart())) { - // if( refParms != null ) { - Iterator 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