// all end points for this servlet
WebserviceEndpoint[] webSvcEps = sLet.getWebserviceEndpoint();
for ( int wsCnt = 0; wsCnt < webSvcEps.length; wsCnt++) {
WebserviceEndpoint webSvc = webSvcEps[wsCnt];
// context root for web service endpoint
String ctxRoot = sunWebApp.getContextRoot();
String uriInConfig = getUriInDomainConfig(appId);
if (uriInConfig != null) {
ctxRoot = uriInConfig;
}
String uri;
String wsUri = webSvc.getEndpointAddressUri();
if ((wsUri != null) && (wsUri.length() > 0)
&& (wsUri.charAt(0) != '/')) {
wsUri = "/" + wsUri;
}
// FIXME: Do we need to read domain.xml stand alone module?
if (ctxRoot != null) {
uri = ctxRoot + wsUri;
} else {
uri = wsUri;
}
boolean isSec = false;
String trans = webSvc.getTransportGuarantee();
if (( trans != null) && ("NONE".equals(trans) == false)) {
isSec = true;
} else if ((webSvc.getLoginConfig() != null) ||
(webSvc.getMessageSecurityBinding() != null)) {
isSec = true;
}
// web service uri, endpoint name and servlet impl class
WebServiceDescrInfo wsdInfo =
new WebServiceDescrInfo(webSvc.getPortComponentName(),
uri, webSvc.getServletImplClass(),isSec);
wsMap.put(wsdInfo.getName(),wsdInfo);
}
}