private String getEndpointURL(AxisEndpoint axisEndpoint) { Parameter modifyAddressParam = axisService.getParameter("modifyUserWSDLPortAddress"); String endpointURL = axisEndpoint.getEndpointURL(); if (modifyAddressParam != null && !Boolean.parseBoolean((String)modifyAddressParam.getValue())) { return endpointURL; } String hostIP; // First check the hostname parameter hostIP = Utils.getHostname(axisService.getAxisConfiguration()); //If it is not set extract the hostIP from the URL if (hostIP == null) { hostIP = WSDLSerializationUtil.extractHostIP(axisService.getEndpointURL()); } //TODO This is to prevent problems when JAVA2WSDL tool is used where there is no //Axis server running. calculateEndpointURL fails in this scenario, refer to // SimpleHTTPServer#getEPRsForService() if (hostIP != null) { return axisEndpoint.calculateEndpointURL(hostIP); } else { return endpointURL; } }
private String getEndpointURL(AxisEndpoint axisEndpoint) { Parameter modifyAddressParam = axisService.getParameter("modifyUserWSDLPortAddress"); String endpointURL = axisEndpoint.getEndpointURL(); if (modifyAddressParam != null && !Boolean.parseBoolean((String)modifyAddressParam.getValue())) { return endpointURL; } String hostIP; // First check the hostname parameter hostIP = Utils.getHostname(axisService.getAxisConfiguration()); //If it is not set extract the hostIP from the URL if (hostIP == null) { hostIP = WSDLSerializationUtil.extractHostIP(axisService.getEndpointURL()); } //TODO This is to prevent problems when JAVA2WSDL tool is used where there is no //Axis server running. calculateEndpointURL fails in this scenario, refer to // SimpleHTTPServer#getEPRsForService() if (hostIP != null) { return axisEndpoint.calculateEndpointURL(hostIP); } else { return endpointURL; } }