String portStyleString = soapBinding.getStyle();
return Style.getStyle(portStyleString);
}
private URL getAddressLocation(Port port) throws DeploymentException {
SOAPAddress soapAddress;
try {
soapAddress = (SOAPAddress) SchemaInfoBuilder.getExtensibilityElement(SOAPAddress.class, port.getExtensibilityElements());
} catch (DeploymentException e) {
//a http: protocol REST service. Skip it.
return null;
}
String locationURIString = soapAddress.getLocationURI();
URL location;
try {
location = new URL(locationURIString);
} catch (MalformedURLException e) {
throw new DeploymentException("Could not construct web service location URL from " + locationURIString);