ws_espcontrol.ecm 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. EspInclude(common);
  14. ESPrequest [nil_remove] SetLoggingRequest
  15. {
  16. int LoggingLevel;
  17. string LogRequests;
  18. bool LogResponses;
  19. };
  20. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SetLoggingResponse
  21. {
  22. int Status;
  23. string Message;
  24. };
  25. ESPrequest [nil_remove] GetLoggingSettingsRequest
  26. {
  27. };
  28. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] GetLoggingSettingsResponse
  29. {
  30. int LoggingLevel;
  31. string LogRequests;
  32. bool LogResponses;
  33. int LoggingLevelSetting;
  34. string LogRequestsSetting;
  35. bool LogResponsesSetting;
  36. };
  37. ESPStruct [nil_remove] Session
  38. {
  39. string ID;
  40. string UserID;
  41. string NetworkAddress;
  42. string CreateTime;
  43. string LastAccessed;
  44. string TimeoutAt;
  45. int Port;
  46. bool TimeoutByAdmin;
  47. };
  48. ESPrequest [nil_remove] SessionQueryRequest
  49. {
  50. string FromIP;
  51. string UserID;
  52. };
  53. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SessionQueryResponse
  54. {
  55. ESParray<ESPstruct Session> Sessions;
  56. };
  57. ESPrequest [nil_remove] SessionInfoRequest
  58. {
  59. int Port;
  60. string ID;
  61. };
  62. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SessionInfoResponse
  63. {
  64. ESPstruct Session Session;
  65. };
  66. ESPrequest [nil_remove] CleanSessionRequest
  67. {
  68. string ID;
  69. string UserID;
  70. string FromIP;
  71. bool AllSessions(false);
  72. };
  73. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] CleanSessionResponse
  74. {
  75. int Status;
  76. string Message;
  77. };
  78. ESPrequest [nil_remove] SetSessionTimeoutRequest
  79. {
  80. string ID;
  81. string UserID;
  82. string FromIP;
  83. int TimeoutMinutes;
  84. bool AllSessions(false);
  85. };
  86. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SetSessionTimeoutResponse
  87. {
  88. int Status;
  89. string Message;
  90. };
  91. ESPrequest [nil_remove] DisableDaliSubscriptionsRequest
  92. {
  93. };
  94. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] DisableDaliSubscriptionsResponse
  95. {
  96. int Status;
  97. string Message;
  98. };
  99. ESPrequest [nil_remove] EnableDaliSubscriptionsRequest
  100. {
  101. };
  102. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] EnableDaliSubscriptionsResponse
  103. {
  104. int Status;
  105. string Message;
  106. };
  107. ESPrequest [nil_remove] DetachFromDaliRequest
  108. {
  109. bool Force(false);
  110. };
  111. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] DetachFromDaliResponse
  112. {
  113. int Status;
  114. string Message;
  115. bool Forced;
  116. };
  117. ESPrequest [nil_remove] AttachToDaliRequest
  118. {
  119. };
  120. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] AttachToDaliResponse
  121. {
  122. int Status;
  123. string Message;
  124. };
  125. ESPservice [auth_feature("NONE"), version("1.03"), default_client_version("1.03"), exceptions_inline("./smc_xslt/exceptions.xslt")] WSESPControl
  126. {
  127. ESPmethod SetLogging(SetLoggingRequest, SetLoggingResponse);
  128. ESPmethod [min_ver("1.03")] GetLoggingSettings(GetLoggingSettingsRequest, GetLoggingSettingsResponse);
  129. ESPmethod [min_ver("1.01")] SessionQuery(SessionQueryRequest, SessionQueryResponse);
  130. ESPmethod [min_ver("1.01")] SessionInfo(SessionInfoRequest, SessionInfoResponse);
  131. ESPmethod [min_ver("1.01")] CleanSession(CleanSessionRequest, CleanSessionResponse);
  132. ESPmethod [min_ver("1.01")] SetSessionTimeout(SetSessionTimeoutRequest, SetSessionTimeoutResponse);
  133. ESPmethod [min_ver("1.02")] DisableDaliSubscriptions(DisableDaliSubscriptionsRequest, DisableDaliSubscriptionsResponse);
  134. ESPmethod [min_ver("1.02")] EnableDaliSubscriptions(EnableDaliSubscriptionsRequest, EnableDaliSubscriptionsResponse);
  135. ESPmethod [min_ver("1.02")] DetachFromDali(DetachFromDaliRequest, DetachFromDaliResponse);
  136. ESPmethod [min_ver("1.02")] AttachToDali(AttachToDaliRequest, AttachToDaliResponse);
  137. };
  138. SCMexportdef(WSESPControl);
  139. SCMapi(WSESPControl) IClientWSESPControl *createWSESPControlClient();