ua_services.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. #ifndef UA_SERVICES_H_
  2. #define UA_SERVICES_H_
  3. #include "opcua.h"
  4. #include "ua_application.h"
  5. #include "ua_transport_binary_secure.h"
  6. /**
  7. * @name Discovery Service Set
  8. *
  9. * This Service Set defines Services used to discover the Endpoints implemented
  10. * by a Server and to read the security configuration for those Endpoints.
  11. *
  12. * @{
  13. */
  14. // Service_FindServers
  15. /**
  16. * @brief This Service returns the Endpoints supported by a Server and all of
  17. * the configuration information required to establish a SecureChannel and a
  18. * Session.
  19. */
  20. UA_Int32 Service_GetEndpoints(SL_Channel *channel, const UA_GetEndpointsRequest* request, UA_GetEndpointsResponse *response);
  21. // Service_RegisterServer
  22. /** @} */
  23. /**
  24. * @name SecureChannel Service Set
  25. *
  26. * This Service Set defines Services used to open a communication channel that
  27. * ensures the confidentiality and Integrity of all Messages exchanged with the
  28. * Server.
  29. *
  30. * @{
  31. */
  32. /**
  33. * @brief This Service is used to open or renew a SecureChannel that can be used
  34. * to ensure Confidentiality and Integrity for Message exchange during a
  35. * Session.
  36. */
  37. UA_Int32 Service_OpenSecureChannel(SL_Channel *channel, const UA_OpenSecureChannelRequest* request, UA_OpenSecureChannelResponse* response);
  38. /**
  39. * @brief This Service is used to terminate a SecureChannel.
  40. */
  41. UA_Int32 Service_CloseSecureChannel(SL_Channel *channel, const UA_CloseSecureChannelRequest *request, UA_CloseSecureChannelResponse *response);
  42. /** @} */
  43. /**
  44. * @name Session Service Set
  45. *
  46. * This Service Set defines Services for an application layer connection
  47. * establishment in the context of a Session.
  48. *
  49. * @{
  50. */
  51. /**
  52. * @brief This Service is used by an OPC UA Client to create a Session and the
  53. * Server returns two values which uniquely identify the Session. The first
  54. * value is the sessionId which is used to identify the Session in the audit
  55. * logs and in the Server’s address space. The second is the authenticationToken
  56. * which is used to associate an incoming request with a Session.
  57. */
  58. UA_Int32 Service_CreateSession(SL_Channel *channel, const UA_CreateSessionRequest *request, UA_CreateSessionResponse *response);
  59. /**
  60. * @brief This Service is used by the Client to submit its SoftwareCertificates
  61. * to the Server for validation and to specify the identity of the user
  62. * associated with the Session. This Service request shall be issued by the
  63. * Client before it issues any other Service request after CreateSession.
  64. * Failure to do so shall cause the Server to close the Session.
  65. */
  66. UA_Int32 Service_ActivateSession(SL_Channel *channel, const UA_ActivateSessionRequest *request, UA_ActivateSessionResponse *response);
  67. /**
  68. * @brief This Service is used to terminate a Session.
  69. */
  70. UA_Int32 Service_CloseSession(SL_Channel *channel, const UA_CloseSessionRequest *request, UA_CloseSessionResponse *response);
  71. // Service_Cancel
  72. /** @} */
  73. /**
  74. * @name NodeManagement Service Set
  75. *
  76. * This Service Set defines Services to add and delete AddressSpace Nodes and References between
  77. * them. All added Nodes continue to exist in the AddressSpace even if the Client that created them
  78. * disconnects from the Server.
  79. *
  80. * @{
  81. */
  82. // Service_AddNodes
  83. // Service_AddReferences
  84. // Service_DeleteNodes
  85. // Service_DeleteReferences
  86. /** @} */
  87. /**
  88. * @name View Service Set
  89. *
  90. * Clients use the browse Services of the View Service Set to navigate through
  91. * the AddressSpace or through a View which is a subset of the AddressSpace.
  92. *
  93. * @{
  94. */
  95. /**
  96. * @brief This Service is used to discover the References of a specified Node.
  97. * The browse can be further limited by the use of a View. This Browse Service
  98. * also supports a primitive filtering capability.
  99. */
  100. UA_Int32 Service_Browse(SL_Channel *channel, const UA_BrowseRequest *request, UA_BrowseResponse *response);
  101. // Service_BrowseNext
  102. // Service_TranslateBrowsePathsRoNodeIds
  103. // Service_RegisterNodes
  104. // Service_UnregisterNodes
  105. /** @} */
  106. /* Part 4: 5.9 Query Service Set */
  107. /**
  108. * @name Query Service Set
  109. *
  110. * This Service Set is used to issue a Query to a Server. OPC UA Query is
  111. * generic in that it provides an underlying storage mechanism independent Query
  112. * capability that can be used to access a wide variety of OPC UA data stores
  113. * and information management systems. OPC UA Query permits a Client to access
  114. * data maintained by a Server without any knowledge of the logical schema used
  115. * for internal storage of the data. Knowledge of the AddressSpace is
  116. * sufficient.
  117. *
  118. * @{
  119. */
  120. // Service_QueryFirst
  121. // Service_QueryNext
  122. /** @} */
  123. /* Part 4: 5.10 Attribute Service Set */
  124. /**
  125. * @name Attribute Service Set
  126. *
  127. * This Service Set provides Services to access Attributes that are part of
  128. * Nodes.
  129. *
  130. * @{
  131. */
  132. /**
  133. * @brief This Service is used to read one or more Attributes of one or more
  134. * Nodes. For constructed Attribute values whose elements are indexed, such as
  135. * an array, this Service allows Clients to read the entire set of indexed
  136. * values as a composite, to read individual elements or to read ranges of
  137. * elements of the composite.
  138. */
  139. UA_Int32 Service_Read(SL_Channel *channel, const UA_ReadRequest *request, UA_ReadResponse *response);
  140. // Service_HistoryRead
  141. // Service_Write
  142. // Service_HistoryUpdate
  143. /** @} */
  144. /**
  145. * @name Method Service Set
  146. *
  147. * The Method Service Set defines the means to invoke methods. A method shall be
  148. a component of an Object.
  149. *
  150. * @{
  151. */
  152. // Service_Call
  153. /** @} */
  154. /**
  155. * @name MonitoredItem Service Set
  156. *
  157. * Clients define MonitoredItems to subscribe to data and Events. Each
  158. * MonitoredItem identifies the item to be monitored and the Subscription to use
  159. * to send Notifications. The item to be monitored may be any Node Attribute.
  160. *
  161. * @{
  162. */
  163. /**
  164. * @brief This Service is used to create and add one or more MonitoredItems to a
  165. * Subscription. A MonitoredItem is deleted automatically by the Server when the
  166. * Subscription is deleted. Deleting a MonitoredItem causes its entire set of
  167. * triggered item links to be deleted, but has no effect on the MonitoredItems
  168. * referenced by the triggered items.
  169. */
  170. UA_Int32 Service_CreateMonitoredItems(SL_Channel *channel, const UA_CreateMonitoredItemsRequest *request, UA_CreateMonitoredItemsResponse *response);
  171. // Service_ModifyMonitoredItems
  172. // Service_SetMonitoringMode
  173. // Service_SetTriggering
  174. // Service_DeleteMonitoredItems
  175. /** @} */
  176. /**
  177. * @name Subscription Service Set
  178. *
  179. * Subscriptions are used to report Notifications to the Client.
  180. *
  181. * @{
  182. */
  183. // Service_CreateSubscription
  184. // Service_ModifySubscription
  185. // Service_SetPublishingMode
  186. // Service_Publish
  187. // Service_Republish
  188. // Service_TransferSubscription
  189. // Service_DeleteSubscription
  190. /** @} */
  191. #endif