cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject svn commit: r1429782 - /cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java
Date Mon, 07 Jan 2013 12:48:13 GMT
Author: asoldano
Date: Mon Jan  7 12:48:12 2013
New Revision: 1429782

URL: http://svn.apache.org/viewvc?rev=1429782&view=rev
Log:
[CXF-4732] Fixing bug

Modified:
    cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java

Modified: cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java?rev=1429782&r1=1429781&r2=1429782&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java (original)
+++ cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java Mon
Jan  7 12:48:12 2013
@@ -391,8 +391,12 @@ public class WSDLGetUtils {
                 if (locUri.isAbsolute()) {
                     URL baseUrl = new URL(base);
                     StringBuilder sb = new StringBuilder(baseUrl.getProtocol());
-                    sb.append("://").append(baseUrl.getHost()).append(":").append(baseUrl.getPort())
-                        .append(locUri.getPath());
+                    sb.append("://").append(baseUrl.getHost());
+                    int port = baseUrl.getPort();
+                    if (port > 0) {
+                        sb.append(":").append(port);
+                    }
+                    sb.append(locUri.getPath());
                     soapAddress.setAttribute("location", sb.toString());
                 } else if (httpBasePathProp != null) {
                     soapAddress.setAttribute("location", httpBasePathProp + location);



Mime
View raw message