Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle SOAP12Address like SOAPAddress #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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