ExtensionRegistry extReg = this.wsdlReader.getExtensionRegistry();
if (extReg == null) {
extReg = wsdlFactory.newPopulatedExtensionRegistry();
}
if ("http".equalsIgnoreCase((String)env.get(ToolConstants.CFG_TRANSPORT))) {
SoapAddress soapAddress = null;
try {
soapAddress = SOAPBindingUtil.createSoapAddress(extReg, isSOAP12());
} catch (WSDLException wse) {
Message msg = new Message("FAIL_TO_CREATE_SOAPADDRESS", LOG);
throw new ToolException(msg, wse);
}
if (env.get(ToolConstants.CFG_ADDRESS) != null) {
soapAddress.setLocationURI((String)env.get(ToolConstants.CFG_ADDRESS));
} else {
soapAddress.setLocationURI(HTTP_PREFIX + "/" + env.get(ToolConstants.CFG_SERVICE) + "/"
+ env.get(ToolConstants.CFG_PORT));
}
port.addExtensibilityElement(soapAddress);
} else if ("jms".equalsIgnoreCase((String)env.get(ToolConstants.CFG_TRANSPORT))) {
JMSAddress jmsAddress = null;