Author: darran.lofthouse(a)jboss.com
Date: 2008-12-05 11:58:47 -0500 (Fri, 05 Dec 2008)
New Revision: 8827
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP04_JBPAPP-1384/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
Log:
[JBPAPP-1384] Correct WSDL dynamic address replacement.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP04_JBPAPP-1384/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP04_JBPAPP-1384/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2008-12-05
14:59:30 UTC (rev 8826)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP04_JBPAPP-1384/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2008-12-05
16:58:47 UTC (rev 8827)
@@ -187,21 +187,18 @@
String orgLocation = locationAttr.getNodeValue();
URL orgURL = new URL(orgLocation);
- String orgProtocol = orgURL.getProtocol();
String orgHost = orgURL.getHost();
- int orgPort = orgURL.getPort();
String orgPath = orgURL.getPath();
if (ServerConfig.UNDEFINED_HOSTNAME.equals(orgHost))
{
URL newURL = new URL(wsdlHost);
+ String newProtocol = newURL.getProtocol();
String newHost = newURL.getHost();
int newPort = newURL.getPort();
- String newLocation = orgProtocol + "://" + newHost;
- if (orgPort != -1)
- newLocation += ":" + orgPort;
- else if (newPort != -1)
+ String newLocation = newProtocol + "://" + newHost;
+ if (newPort != -1)
newLocation += ":" + newPort;
newLocation += orgPath;
Show replies by date