Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,18 @@ public static void filterWSDL(Definition definition, PropertyResolver propertyRe
Service service = (Service) serviceObject;
for (Object portObject : service.getPorts().values()) {
Port port = (Port) portObject;
String locationURI = getEndpointAddress(port);
for (Object extObject : port.getExtensibilityElements()) {
if (extObject instanceof SOAPAddress) {
SOAPAddress address = (SOAPAddress) extObject;
String toReplace = Strings.replaceProperties(address.getLocationURI(), propertyResolver);
if (!toReplace.isEmpty() && !toReplace.equals(address.getLocationURI())) {
address.setLocationURI(toReplace);
if (extObject instanceof SOAPAddress || extObject instanceof SOAP12Address) {
String toReplace = Strings.replaceProperties(locationURI, propertyResolver);
if (!toReplace.isEmpty() && !toReplace.equals(locationURI)) {
if (extObject instanceof SOAPAddress) {
SOAPAddress address = (SOAPAddress) extObject;
address.setLocationURI(toReplace);
} else if (extObject instanceof SOAP12Address) {
SOAP12Address address = (SOAP12Address) extObject;
address.setLocationURI(toReplace);
}
}
}
}
Expand Down