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
Show replies by date