use of com.amalto.workbench.webservices.WSString in project tmdm-studio-se by Talend.
the class ServiceConfigrationMainPage method setForServiceNameCombo.
protected void setForServiceNameCombo() {
try {
service = Util.getMDMService(getXObject());
// $NON-NLS-1$
WSServicesList list = service.getServicesList(new WSGetServicesList(""));
List<WSServicesListItem> items = list.getItem();
if (items != null) {
String[] sortedList = new String[items.size()];
for (int i = 0; i < items.size(); i++) {
sortedList[i] = items.get(i).getJndiName();
}
Arrays.sort(sortedList);
for (String element : sortedList) {
WSServiceGetDocument doc = service.getServiceDocument(new WSString(element.trim()));
if (doc.getConfigureSchema() == null || doc.getConfigureSchema().length() == 0) {
continue;
}
serviceNameCombo.add(element);
}
}
} catch (Exception e) {
if (!Util.handleConnectionException(getSite().getShell(), e, Messages.EditXObjectAction_ErrorMsg2)) {
MessageDialog.openError(getSite().getShell(), Messages._Error, Messages.bind(Messages.EditXObjectAction_ErrorMsg2, e.getLocalizedMessage()));
}
}
}
use of com.amalto.workbench.webservices.WSString in project tmdm-studio-se by Talend.
the class ServiceConfigrationMainPage method setForConfigureContent.
protected void setForConfigureContent(String serviceName) {
if (serviceName != null && !"".equals(serviceName)) {
// $NON-NLS-1$
document = service.getServiceDocument(new WSString(serviceName.trim()));
String documentConfigure = ServiceConfigrationMainPage.formartXml(document.getConfigure());
serviceConfigurationsText.setText(documentConfigure);
// $NON-NLS-1$
errorLabel.setText("");
}
}
Aggregations