SOAPAddress address = (SOAPAddress) obj;
serviceURL = address.getLocationURI();
format = SynapseConstants.FORMAT_SOAP11;
break;
} else if (obj instanceof SOAP12Address) {
SOAP12Address address = (SOAP12Address) obj;
serviceURL = address.getLocationURI();
format = SynapseConstants.FORMAT_SOAP12;
break;
} else if (obj instanceof HTTPAddress) {
HTTPAddress address = (HTTPAddress) obj;
serviceURL = address.getLocationURI();
format = SynapseConstants.FORMAT_REST;
Binding binding = port.getBinding();
if (binding == null) {
continue;
}