}
}
private WSDLDocument getWsdlFromUddi() {
WSDLDocument wsdlDoc = null;
try {
UDDIProxy uddiProxy = new UDDIProxy();
UDDIReference uddiReference = getAnalyzerConfig().getUDDIReference();
uddiProxy.setInquiryURL(uddiReference.getInquiryURL());
TModel tModel = null;
if (uddiReference.getKeyType().equals(UDDIReference.BINDING_KEY)) {
BindingDetail bindingDetail = uddiProxy.get_bindingDetail(
uddiReference.getKey());
BindingTemplate bindingTemplate = (BindingTemplate) bindingDetail.
getBindingTemplateVector().elementAt(0);
tModel = UDDIUtils.findTModel(uddiProxy, bindingTemplate, false);
} else { // UDDIReference.TMODEL_KEY
TModelDetail tModelDetail = uddiProxy.get_tModelDetail(
uddiReference.getKey());
tModel = (TModel) tModelDetail.getTModelVector().elementAt(0);
}
String overviewURL = UDDIUtils.getOverviewURL(tModel);
String wsdlURI = UDDIUtils.getWSDLLocation(overviewURL);
wsdlDoc = new WSDLDocument(wsdlURI);
/* TODO: I refactored this code from BSP3001 but I'm not sure that
* it's correct. This overrides the <wsdlElement> child of
* <uddiReference> from the config file, which never gets used.
*/