Web服務(wù)是目前唯一的高層次應(yīng)用程序到應(yīng)用程序的通信技術(shù),它幾乎涵蓋了所有的平臺(tái)提供商,包括Microsoft, IBM, Sun, 和Linux。XML(可擴(kuò)展標(biāo)記語言)是實(shí)現(xiàn)全球互聯(lián)的關(guān)鍵支持技術(shù)之一,并且它擁有全行業(yè)的支持作為一個(gè)處理使用各種操作系統(tǒng)之間的處理數(shù)據(jù)的標(biāo)準(zhǔn)化方法。在一個(gè)更高層次上,SOAP規(guī)范中使用XML,定義了一個(gè)平臺(tái)獨(dú)立的遠(yuǎn)程過程調(diào)用的消息。Web服務(wù)如XML DA或基于SOAP的UA并且它們大都是定義在WSDL文檔中。
Web Services are currently the only high-level application-to-application communication technology embraced by virtually all platform providers including Microsoft, IBM, Sun, and Linux. XML (eXtensible Markup Language) is one of the key enabling technologies for achieving global interconnectivity and it has industry-wide support as a standardized way of handling data among systems using a variety of operating systems. On a higherlayer the SOAP specification defines remote procedure call messages in a platform independent fashion, using XML. Web services such as XML DA or UA base on SOAP and are defined in WSDL documents.
XML DA
XML DA制定了一個(gè)非常簡(jiǎn)單的具有八個(gè)方法的web服務(wù),這些方法能夠處理所有的在OPC Data Access的應(yīng)用程序中使用的典型功能。
XML DA的特點(diǎn)
- 易于實(shí)現(xiàn)
- 有限的功能,僅支持?jǐn)?shù)據(jù)訪問
- 覆蓋了大多數(shù)OPC Data Access應(yīng)用程序的要求
- 能夠被用于安全通信的web服務(wù)擴(kuò)展中
- 比基于COM的OPC要慢很多
- 產(chǎn)品可用
OPC UA
OPC UA的構(gòu)成在它的基礎(chǔ)框架中包含了所有的OPC規(guī)范中所需要的功能(Data Access, Alarms&Events, Historical Data, Batch, Commands, Security)。因此,OPC UA基礎(chǔ)框架是復(fù)雜的并且它的設(shè)計(jì)使用到了一個(gè)網(wǎng)絡(luò)數(shù)據(jù)庫。而網(wǎng)絡(luò)數(shù)據(jù)庫本身非常復(fù)雜。由于難以實(shí)施和維護(hù)網(wǎng)絡(luò)數(shù)據(jù)庫模型,更簡(jiǎn)單的關(guān)系型數(shù)據(jù)庫取而代之的被廣泛使用。
Advosol 為XML-DA clients, XML-DA Servers 和Gateways提供的軟件開發(fā)工具,它為新的應(yīng)用程序和當(dāng)前已使用的數(shù)千種OPC DA產(chǎn)品的輕松遷移路徑提供了良好的基礎(chǔ)。
XML-DA服務(wù)器端網(wǎng)關(guān)
XDAGW-SS網(wǎng)關(guān)能夠使得從XML-DA客戶端來訪問OPC-DA服務(wù)器。使用該網(wǎng)關(guān)是最快速的方法使得現(xiàn)有的OPC DA服務(wù)器從遠(yuǎn)程的位置可訪問。XDAGW-SS可以被配置為限制訪問項(xiàng)的子集或僅允許讀訪問。
XML-DA客戶端網(wǎng)關(guān)
XDAGW-CS網(wǎng)關(guān)允許OPC DA客戶端訪問XML-DA服務(wù)器。僅需要最小的配置。XDAGW-CS已測(cè)試通過兼容OPC DA V2.05和V3。該XML-DA Bridge由一對(duì)網(wǎng)關(guān),XDAGW-SS網(wǎng)關(guān)和XDAGW-CS網(wǎng)關(guān)。現(xiàn)有的OPC DA客戶端能夠通過互聯(lián)網(wǎng)訪問OPC DA服務(wù)器。
OPC Exchange服務(wù)器
Exchange Server聚集來自多個(gè)OPC DA服務(wù)器的數(shù)據(jù)并在服務(wù)器之間交換數(shù)據(jù)。作為一個(gè)XML DA服務(wù)器被訪問,該Exchange Server實(shí)際上作為一個(gè)網(wǎng)關(guān)為多個(gè)OPC DA服務(wù)器提供web服務(wù)。
XML-DA客戶端組件
XMLDA.NET客戶端組件允許XML-DA客戶端直接訪問本地OPC DA V2服務(wù)器,而不需要通過XML序列化,大大提高了性能。
客戶端可以開發(fā)成為最先進(jìn)的web服務(wù)客戶端,即使需要訪問OPC DA COM服務(wù)器。
XM-DA服務(wù)器工具包
網(wǎng)關(guān)能夠被用于OPC DA服務(wù)器到XML-DA的包裝,但是一個(gè)原生的XML-DA服務(wù)器能夠提供更高性能和更好的配置選項(xiàng)。XDASrv Server Toolkit使得原生的XML-DA服務(wù)器的開發(fā)變得簡(jiǎn)單而快捷。通用的XML-DA服務(wù)器提供的服務(wù)是作為一個(gè).Net的web服務(wù)。用戶只需要開發(fā)一個(gè)具有少許幾項(xiàng)的配置和設(shè)備訪問方法的.Net程序集。還有一些可選的方法能夠被實(shí)現(xiàn)用于優(yōu)化性能和滿足那些要求苛刻的應(yīng)用程序。
OPC Historian WebService
XHDASrv OPC Historian Web Service以一個(gè).NetWeb Service的方式暴露了一個(gè)OPC HAD服務(wù)器并且允許web客戶端應(yīng)用程序讀取歸檔在OPC HAD服務(wù)器上的數(shù)據(jù)。
XML-DA實(shí)例客戶端
一些XML-DA客戶端所包含的源代碼提供免費(fèi)下載。
XML DA
XML DA specifies a rather simple web service with eight methods that handle all of the features typically used in the OPC Data Access applications.
XML DA Characteristics
- Simple to implement
- Limited functionality, Data Access only
- Covers the requirements of most OPC Data Access applications
- Can be used with web service extensions for secure communication
- Much slower than COM based OPC
- Products available
OPC UA
OPC UA is structured to have the required features for all OPC specifications (Data Access, Alarms&Events, Historical Data, Batch, Commands, Security) in it's base. Therefore the OPC UA base is complex and designed with a network database. A network database by itself is complicated. Due to the difficulty implementing and maintaining the network database model, the simpler relational databases are widely used instead
Advosol offers software development tools for XML-DA clients, XML-DA Servers and Gateways that provide a sound base for new applications and an easy migration path for the thousands of OPC DA products in use today.
XML-DA server-side Gateway
The XDAGW-SS gateway enables OPC-DA servers to be accessed from XML-DA clients. Using the gateway is the quickest way to make an existing OPC DA server accessible from a remote location.XDAGW-SS can be configured to restrict access to a item subset or allow only read access.
XML-DA client-side Gateway
The XDAGW-CS gateway allows OPC DA clients to access XML-DA servers. Only minimal configuration is required. XDAGW-CS is OPC DA V2.05 and V3 compliance tested.The XML-DA Bridge consists of a pair of gateways, the XDAGW-SS gateway and the XDAGW-CS gateway.Existing OPC DA clients can access OPC DA servers over the Internet.
OPC Exchange Server
The Exchange Server aggregates data from multiple OPC DA servers and exchanges data between these servers.Accessed as an XML DA server the Exchange Server acts as a gateway web service to multiple OPC DA servers.
XML-DA Client Component
The XMLDA.NET client component allows XML-DA clients to access local OPC DA V2 server directly, without going through XML serialization, offering highly improved performance.
Clients can be developed as state of the art web services clients even if OPC DA COM server need to be accessed.
XML-DA Server Toolkit
Gateways can be used to wrap OPC DA servers to XML-DA, but a native XML-DA server offers higher performance and better configuration options.The XDASrv Server Toolkit makes the development of native XML-DA servers simple an quick. The generic XML-DA server is provided as a .Net web service. The user only has to develop a .Net assembly with a few item configuration and device access methods. Optional methods can be implemented to optimize performance and realize demanding applications.
OPC Historian WebService
The XHDASrv OPC Historian Web Service exposes an OPC HDA server as a .Net Web Service and allows web client applications to read data archived in OPC HDA server.
XML-DA Sample Clients
A bundle of XML-DA Clients including source code can be downloaded free of charge.