public static void getWebServicesData(HandlerContext handlerCtx) {
Map<Object, String> wsKeyMap = getWSKeys();
List dataList = new ArrayList();
for (Iterator iter = wsKeyMap.keySet().iterator(); iter.hasNext();) {
Object wsKey = iter.next();
WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(wsKey);
Map wsInfoMap = wsInfo.asMap();
String wsdlFileName = (new File((String)wsInfoMap.get(
WebServiceEndpointInfo.WSDL_FILE_LOCATION_KEY))).getName();
wsInfoMap.put("WSDLFileName", wsdlFileName);
String wsKeyEncoded = (String)wsKey;
try {
wsKeyEncoded = URLEncoder.encode(wsKeyEncoded, "UTF-8");
} catch (UnsupportedEncodingException uee) {
LogUtil.severe("Error encoding " + wsKey, uee);
wsKeyEncoded = URLEncoder.encode(wsKeyEncoded);
}
wsInfoMap.put("WebServiceKeyEncoded", wsKeyEncoded);
String port = ApplicationHandlers.getPortForApplication(wsInfo.getAppID());
wsInfoMap.put("Port", port);
String endpointURI = wsInfo.getEndpointURI();
String endpointURIPruned = endpointURI;
if (endpointURI.startsWith("/")) {
endpointURIPruned = endpointURI.substring(1);
}
wsInfoMap.put("EndpointURI", endpointURIPruned);