List ees = port.getExtensibilityElements();
for (Iterator itr = ees.iterator(); itr.hasNext();) {
Object extensor = itr.next();
if (extensor instanceof HTTPAddress) {
final HTTPAddress httpAdd = (HTTPAddress)extensor;
EndpointInfo info = new HttpEndpointInfo(serviceInfo,
"http://schemas.xmlsoap.org/wsdl/http/");
info.setAddress(httpAdd.getLocationURI());
info.addExtensor(httpAdd);
return info;
} else if (extensor instanceof AddressType) {
final AddressType httpAdd = (AddressType)extensor;
EndpointInfo info =
new HttpEndpointInfo(serviceInfo,
"http://schemas.xmlsoap.org/wsdl/http/");
info.setAddress(httpAdd.getLocation());
info.addExtensor(httpAdd);
return info;
}
}
}