Author: darran.lofthouse(a)jboss.com
Date: 2008-11-07 07:06:04 -0500 (Fri, 07 Nov 2008)
New Revision: 8671
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
Log:
[JBWS-2372] Protocol not considered when re-writing address in WSDL based on request
address.
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2008-11-07
11:24:25 UTC (rev 8670)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2008-11-07
12:06:04 UTC (rev 8671)
@@ -184,7 +184,6 @@
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();
@@ -192,10 +191,11 @@
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;
+ String newLocation = newProtocol + "://" + newHost;
if (newPort != -1)
newLocation += ":" + newPort;
else if (orgPort != -1)
Show replies by date