当前位置:首页 > 报告详情

OPC UA与REST.pdf

上传人: 2*** 编号:136288 2023-08-01 13页 574.10KB

1、Randy Armstrongrandy.armstrongopcfoundation.org2Statelessness Each request from the client to the server must contain all the necessary information to understand and process the request.Client-Server Architecture The system is divided into client(user interface)and server(data storage and processing

2、)components.Uniform Interface RESTful APIs have a uniform and consistent interface that is defined by a set of constraints.Cacheability Responses must,implicitly or explicitly,define themselves as either cacheable or non-cacheable to prevent clients from providing stale or inappropriate data in resp

3、onse to further requests.Decoupled A client cannot ordinarily tell whether it is connected directly to the end server or to an intermediary along the way.3Many web programmers need a simple HTTP based API to access data;Numerous standard tools exist facilitate development with REST based APIsClientS

4、erverHTTP POST alpha:1,beta:hello,gamma:red,yellow HTTP RESPONSE result:1,delta:force4HTTPS transport has been supported for years;OPC UA Services can be invoked sending binary,XML or JSON encoded Service message via HTTPS POST.Allows firewall and proxy transversal(two requirements of REST)5Services

5、 that can be invoked without creating a Session.Authentication is done on call(i.e.by passing a user token).Only Browse,Translate,Read,Write,HistoryRead,HistoryWrite and Call support Session-less operation.https:/reference.opcfoundation.org/Core/Part4/v105/docs/6.36Open API 3.0.0 schema definition.N

6、o Server side sessions.No webhooks and no subscriptions.Mandatory support for OAuth2Tooling to generate Open API definitions from types defined in a NodeSet.7OPC UA NodeIds are qualified by NamespaceUris to ensure co-existence between information models.Normally,a NamespaceIndex is used to optimize

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
本文主要探讨了OPC UA(开放平台通信统一架构)与REST(表述性状态转移)技术的结合,及其在客户端-服务器架构中的应用。关键点包括: 1. **无状态性**:每次客户端到服务器的请求都必须包含理解并处理请求所需的所有信息。 2. **客户端-服务器架构**:系统分为客户端(用户界面)和服务器(数据存储和处理)两个部分。 3. **统一接口**:RESTful API具有一致且定义明确的接口,由一组约束定义。 4. **可缓存性**:响应必须显式或隐式地定义自己为可缓存或不可缓存,以防止客户端提供过时或不适当的数据。 5. **解耦**:客户端通常无法判断自己是直接连接到最终服务器还是通过中间代理。 6. **多客户端需要简单的基于HTTP的API来访问数据;存在许多标准工具来简化使用RESTful API的开发。** 7. **HTTPS传输支持多年;OPC UA服务可以通过HTTPS POST发送二进制、XML或JSON编码的服务消息,允许防火墙和代理穿越。** 8. **支持无需创建会话即可调用的服务;认证在调用时完成(即绕过用户令牌)。** 9. **支持无会话操作的服务,如浏览、翻译、读取、写入、历史读取、历史写入和调用。** 10. **POST仅方法允许重用现有代码,并确保每个请求消息是自包含的;查询参数将API与HTTP实现绑定;应适用于其他传输,如MQTT。** 文章还提到了OPC UA节点标识符的命名空间URI,以确保信息模型之间的共存;参数名称与现有服务完全对应;服务结果代替HTTP响应代码;以及URI表与请求无关等。最后,文章提到了正在开发中的API,包括OpenAPI映射和GraphQL映射,并鼓励OPC基金会成员参与。
RESTful API如何实现无状态性? OPC UA服务如何通过HTTPS POST进行调用? GraphQL在OPC UA服务中的映射是如何实现的?
客服
商务合作
小程序
服务号
折叠