throw new IllegalStateException("TOMCAT_HTTP_PORT is invalid.");
}
String endpoint = format(ENDPOINT_FORMAT, Integer.parseInt(port));
try {
return new WebAPIService(new URL(endpoint), new QName(
"http://belframework.org/ws/schemas", "WebAPIService"))
.getWebAPISoap11();
} catch (MalformedURLException e) {
throw new IllegalStateException(format(
"endpoint URL %s is invalid.", endpoint));