' . G::LoadTranslation('ID_WSDL') . '';
$workspace = '';
}
} else {
if (!isset ($_SESSION ['END_POINT'])) {
$wsdl = System::getServerProtocolHost();
$workspace = config("system.workspace");
} else {
$wsdl = $_SESSION ['END_POINT'];
$workspace = $_SESSION ['WS_WORKSPACE'];
}
}
$defaultEndpoint = 'http://' . $_SERVER ['HTTP_HOST'] . '/sys' . config("system.workspace") . '/en/classic/services/wsdl2';
$wsdl = isset ($_SESSION ['END_POINT']) ? $_SESSION ['END_POINT'] : $defaultEndpoint;
$tree = new PmTree ();
$tree->name = 'WebServices';
$tree->nodeType = "base";
$tree->contentWidth = "310";
$tree->width = "280px";
$tree->value = '
| ' . G::loadTranslation("ID_WEB_SERVICES") . ' |
';
$tree->showSign = false;
$allWebservices = array();
$allWebservices [] = 'Login';
$allWebservices [] = 'CreateUser';
$allWebservices [] = 'AssignUserToGroup';
$allWebservices [] = 'NewCase';
$allWebservices [] = 'NewCaseImpersonate';
$allWebservices [] = 'RouteCase';
$allWebservices [] = 'SendVariables';
$allWebservices [] = 'SendMessage';
$allWebservices [] = 'ProcessList';
$allWebservices [] = 'CaseList';
$allWebservices [] = 'UnassignedCaseList';
$allWebservices [] = 'RoleList';
$allWebservices [] = 'GroupList';
$allWebservices [] = 'UserList';
$allWebservices [] = 'TaskList';
$allWebservices [] = 'TriggerList';
$allWebservices [] = 'InputDocumentList';
$allWebservices [] = 'InputDocumentProcessList';
$allWebservices [] = 'OutputDocumentList';
$allWebservices [] = 'RemoveDocument';
$allWebservices [] = 'TaskCase';
$allWebservices [] = 'ReassignCase';
$allWebservices [] = 'removeUserFromGroup';
foreach ($allWebservices as $ws) {
$ID_TEST = G::LoadTranslation('ID_TEST');
$UID = htmlentities($ws);
$WS_TITLE = strip_tags($ws);
$htmlGroup = '';
$htmlGroup .= "";
$htmlGroup .= "";
$htmlGroup .= "| ";
$htmlGroup .= "{$WS_TITLE} | ";
$htmlGroup .= "";
if ($WS_TITLE != 'SendFiles') {
if ($WS_TITLE == 'Login' || $wsSessionId != '') {
$htmlGroup .= "[{$ID_TEST}]";
}
} else {
if (isset($_SESSION ['WS_SESSION_ID']) && $_SESSION ['WS_SESSION_ID'] != '') {
$htmlGroup .= "[{$ID_TEST}]";
}
}
$htmlGroup .= " |
";
$ch = $tree->addChild($ws, $htmlGroup, array('nodeType' => 'child'));
$ch->point = '
';
}
print($tree->render());