ua_services.h 8.2 KB

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