URI serviceURI = new URI(requestURI.getScheme(), null,
requestURI.getHost(), requestURI.getPort(),
requestURI.getPath(), null, null);
ExtensibilityElement el = (ExtensibilityElement) exts.get(0);
if (SOAPBindingUtil.isSOAPAddress(el)) {
SoapAddress add = SOAPBindingUtil.getSoapAddress(el);
add.setLocationURI(serviceURI.toString());
}
if (el instanceof AddressType) {
AddressType add = (AddressType) el;
add.setLocation(serviceURI.toString());
}
}
}