ua_services.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 "opcua.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. // Service_AddReferences
  99. // Service_DeleteNodes
  100. // Service_DeleteReferences
  101. /** @} */
  102. /**
  103. * @name View Service Set
  104. *
  105. * Clients use the browse Services of the View Service Set to navigate through
  106. * the AddressSpace or through a View which is a subset of the AddressSpace.
  107. *
  108. * @{
  109. */
  110. /**
  111. * @brief This Service is used to discover the References of a specified Node.
  112. * The browse can be further limited by the use of a View. This Browse Service
  113. * also supports a primitive filtering capability.
  114. */
  115. UA_Int32 Service_Browse(SL_Channel *channel, const UA_BrowseRequest *request, UA_BrowseResponse *response);
  116. /**
  117. * @brief This Service is used to translate textual node paths to their respective ids.
  118. */
  119. UA_Int32 Service_TranslateBrowsePathsToNodeIds(SL_Channel *channel, const UA_TranslateBrowsePathsToNodeIdsRequest *request, UA_TranslateBrowsePathsToNodeIdsResponse *response);
  120. // Service_BrowseNext
  121. // Service_TranslateBrowsePathsToNodeIds
  122. // Service_RegisterNodes
  123. // Service_UnregisterNodes
  124. /** @} */
  125. /* Part 4: 5.9 Query Service Set */
  126. /**
  127. * @name Query Service Set
  128. *
  129. * This Service Set is used to issue a Query to a Server. OPC UA Query is
  130. * generic in that it provides an underlying storage mechanism independent Query
  131. * capability that can be used to access a wide variety of OPC UA data stores
  132. * and information management systems. OPC UA Query permits a Client to access
  133. * data maintained by a Server without any knowledge of the logical schema used
  134. * for internal storage of the data. Knowledge of the AddressSpace is
  135. * sufficient.
  136. *
  137. * @{
  138. */
  139. // Service_QueryFirst
  140. // Service_QueryNext
  141. /** @} */
  142. /* Part 4: 5.10 Attribute Service Set */
  143. /**
  144. * @name Attribute Service Set
  145. *
  146. * This Service Set provides Services to access Attributes that are part of
  147. * Nodes.
  148. *
  149. * @{
  150. */
  151. /**
  152. * @brief This Service is used to read one or more Attributes of one or more
  153. * Nodes. For constructed Attribute values whose elements are indexed, such as
  154. * an array, this Service allows Clients to read the entire set of indexed
  155. * values as a composite, to read individual elements or to read ranges of
  156. * elements of the composite.
  157. */
  158. UA_Int32 Service_Read(SL_Channel *channel, const UA_ReadRequest *request, UA_ReadResponse *response);
  159. // Service_HistoryRead
  160. // Service_Write
  161. // Service_HistoryUpdate
  162. /** @} */
  163. /**
  164. * @name Method Service Set
  165. *
  166. * The Method Service Set defines the means to invoke methods. A method shall be
  167. a component of an Object.
  168. *
  169. * @{
  170. */
  171. // Service_Call
  172. /** @} */
  173. /**
  174. * @name MonitoredItem Service Set
  175. *
  176. * Clients define MonitoredItems to subscribe to data and Events. Each
  177. * MonitoredItem identifies the item to be monitored and the Subscription to use
  178. * to send Notifications. The item to be monitored may be any Node Attribute.
  179. *
  180. * @{
  181. */
  182. /**
  183. * @brief This Service is used to create and add one or more MonitoredItems to a
  184. * Subscription. A MonitoredItem is deleted automatically by the Server when the
  185. * Subscription is deleted. Deleting a MonitoredItem causes its entire set of
  186. * triggered item links to be deleted, but has no effect on the MonitoredItems
  187. * referenced by the triggered items.
  188. */
  189. UA_Int32 Service_CreateMonitoredItems(SL_Channel *channel, const UA_CreateMonitoredItemsRequest *request, UA_CreateMonitoredItemsResponse *response);
  190. // Service_ModifyMonitoredItems
  191. // Service_SetMonitoringMode
  192. // Service_SetTriggering
  193. // Service_DeleteMonitoredItems
  194. /** @} */
  195. /**
  196. * @name Subscription Service Set
  197. *
  198. * Subscriptions are used to report Notifications to the Client.
  199. *
  200. * @{
  201. */
  202. // Service_CreateSubscription
  203. // Service_ModifySubscription
  204. // Service_SetPublishingMode
  205. // Service_Publish
  206. // Service_Republish
  207. // Service_TransferSubscription
  208. // Service_DeleteSubscription
  209. /** @} */
  210. /** @} */ // end of group
  211. #endif