Window.alert("Error:" + caught.getMessage());
}
public void onSuccess(InquiryResponse response) {
if (response.isSuccess()) {
Service service = response.getService();
if (table!=null) detailPanel.remove(table);
table = new FlexTable();
table.setWidth("100%");
table.setCellSpacing(0);
table.setCellPadding(4);
detailPanel.add(table);
table.addTableListener(detailPanel);
int row = 0;
table.getCellFormatter().addStyleName(row, 1, "ListHeader");
table.setHTML(row, 0, UDDIBrowser.images.service().getHTML());
table.setHTML(row++, 1, service.getName());
table.setHTML(row, 0, UDDIBrowser.images.key().getHTML());
table.setText(row++, 1, service.getKey());
table.setHTML(row, 0, UDDIBrowser.images.description().getHTML());
table.setText(row++, 1, service.getDescription());
for (ServiceBinding serviceBinding : service.getServiceBindings()) {
table.setHTML(row, 0, UDDIBrowser.images.bindingtemplate().getHTML());
table.setText(row++, 1, "Binding Template");
int bindingRow = 0;