Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-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 3D71E70FC for ; Wed, 21 Dec 2011 21:00:54 +0000 (UTC) Received: (qmail 5747 invoked by uid 500); 21 Dec 2011 21:00:54 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 5705 invoked by uid 500); 21 Dec 2011 21:00:54 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 5697 invoked by uid 99); 21 Dec 2011 21:00:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 21:00:54 +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; Wed, 21 Dec 2011 21:00:51 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 646402388A33 for ; Wed, 21 Dec 2011 21:00:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1221880 - in /cxf/branches/2.4.x-fixes: ./ rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java Date: Wed, 21 Dec 2011 21:00:30 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111221210030.646402388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Wed Dec 21 21:00:29 2011 New Revision: 1221880 URL: http://svn.apache.org/viewvc?rev=1221880&view=rev Log: Merged revisions 1214335 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r1214335 | dkulp | 2011-12-14 11:58:03 -0500 (Wed, 14 Dec 2011) | 3 lines [CXF-3976] Use the EPR passed into SoapTransportFactory whenever possible. Patch from Andrei Shakirin applied ........ Modified: cxf/branches/2.4.x-fixes/ (props changed) cxf/branches/2.4.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java Propchange: cxf/branches/2.4.x-fixes/ ('svn:mergeinfo' removed) Propchange: cxf/branches/2.4.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.4.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java?rev=1221880&r1=1221879&r2=1221880&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java (original) +++ cxf/branches/2.4.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java Wed Dec 21 21:00:29 2011 @@ -200,11 +200,7 @@ public class SoapTransportFactory extend public Conduit getConduit(EndpointInfo ei, EndpointReferenceType target) throws IOException { - return getConduit(ei); - } - - public Conduit getConduit(EndpointInfo ei) throws IOException { - String address = ei.getAddress(); + String address = target.getAddress().getValue(); if (!StringUtils.isEmpty(address) && address.startsWith("soap.tcp://")) { //TODO - examine policies and stuff to look for the sun tcp policies return new TCPConduit(ei); @@ -229,13 +225,17 @@ public class SoapTransportFactory extend throw new RuntimeException("Could not find conduit initiator for transport " + transId); } - return conduitInit.getConduit(ei); + return conduitInit.getConduit(ei, target); } catch (BusException e) { throw new RuntimeException("Could not find conduit initiator for transport " + transId); } } + public Conduit getConduit(EndpointInfo ei) throws IOException { + return getConduit(ei, ei.getTarget()); + } + @Resource(name = "cxf") public void setBus(Bus bus) { super.setBus(bus);