ws_espcontrol.ecm 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. bool LogRequests;
  18. bool LogResponses;
  19. };
  20. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SetLoggingResponse
  21. {
  22. int Status;
  23. string Message;
  24. };
  25. ESPStruct [nil_remove] Session
  26. {
  27. string ID;
  28. string UserID;
  29. string NetworkAddress;
  30. string CreateTime;
  31. string LastAccessed;
  32. string TimeoutAt;
  33. int Port;
  34. bool TimeoutByAdmin;
  35. };
  36. ESPrequest [nil_remove] SessionQueryRequest
  37. {
  38. string FromIP;
  39. string UserID;
  40. };
  41. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SessionQueryResponse
  42. {
  43. ESParray<ESPstruct Session> Sessions;
  44. };
  45. ESPrequest [nil_remove] SessionInfoRequest
  46. {
  47. int Port;
  48. string ID;
  49. };
  50. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SessionInfoResponse
  51. {
  52. ESPstruct Session Session;
  53. };
  54. ESPrequest [nil_remove] CleanSessionRequest
  55. {
  56. string ID;
  57. string UserID;
  58. string FromIP;
  59. bool AllSessions(false);
  60. };
  61. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] CleanSessionResponse
  62. {
  63. int Status;
  64. string Message;
  65. };
  66. ESPrequest [nil_remove] SetSessionTimeoutRequest
  67. {
  68. string ID;
  69. string UserID;
  70. string FromIP;
  71. int TimeoutMinutes;
  72. bool AllSessions(false);
  73. };
  74. ESPresponse [exceptions_inline, nil_remove, http_encode(0)] SetSessionTimeoutResponse
  75. {
  76. int Status;
  77. string Message;
  78. };
  79. ESPservice [auth_feature("NONE"), version("1.01"), default_client_version("1.01"), exceptions_inline("./smc_xslt/exceptions.xslt")] WSESPControl
  80. {
  81. ESPmethod SetLogging(SetLoggingRequest, SetLoggingResponse);
  82. ESPmethod [min_ver("1.01")] SessionQuery(SessionQueryRequest, SessionQueryResponse);
  83. ESPmethod [min_ver("1.01")] SessionInfo(SessionInfoRequest, SessionInfoResponse);
  84. ESPmethod [min_ver("1.01")] CleanSession(CleanSessionRequest, CleanSessionResponse);
  85. ESPmethod [min_ver("1.01")] SetSessionTimeout(SetSessionTimeoutRequest, SetSessionTimeoutResponse);
  86. };
  87. SCMexportdef(WSESPControl);
  88. SCMapi(WSESPControl) IClientWSESPControl *createWSESPControlClient();