[jbossws-commits] JBossWS SVN: r17186 - in thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497: rt/frontend/simple/src/main/java/org/apache/cxf/frontend and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Jan 7 06:32:50 EST 2013


Author: mmusaji
Date: 2013-01-07 06:32:50 -0500 (Mon, 07 Jan 2013)
New Revision: 17186

Modified:
   thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497/
   thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java
Log:
[JBPAPP-10497] - Check for missing port


Property changes on: thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497
___________________________________________________________________
Modified: svn:mergeinfo
   - /thirdparty/cxf/branches/cxf-2.4.10:17053
   + /thirdparty/cxf/branches/cxf-2.4.10:17053,17185

Modified: thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java
===================================================================
--- thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java	2013-01-07 11:07:55 UTC (rev 17185)
+++ thirdparty/cxf/branches/cxf-2.4.9.jbossorg-1_JBPAPP-10497/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java	2013-01-07 11:32:50 UTC (rev 17186)
@@ -407,8 +407,12 @@
                 URL locUrl = new URL(location);
                 URL baseUrl = new URL(base);
                 StringBuilder sb = new StringBuilder(baseUrl.getProtocol());
-                sb.append("://").append(baseUrl.getHost()).append(":").append(baseUrl.getPort())
-                    .append(locUrl.getPath());
+                sb.append("://").append(baseUrl.getHost());
+                int port = baseUrl.getPort();
+                if (port > 0) {
+                    sb.append(":").append(port);
+                }
+                sb.append(locUrl.getPath());
                 soapAddress.setAttribute("location", sb.toString());
             } catch (Exception e) {
                 //ignore



More information about the jbossws-commits mailing list