Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters

Please confirm you want to mark all posts read

Mark all topics read

sp_MobileMenu Actions
Avatar

New/Updated Topics

Select Forum

sp_TopicIcon
JavaScript OPC XML DA client
Avatar
Alexander Roos
Posts: 2
03/06/2023 - 12:26

1

Hi everyone!

I am writing an application in JavaScript. My application needs to communicate with an OPC XML DA server. Does anyone know an OPC XML DA client library for JavaScript that I could use? If so, please let me know.

Thanks!

Avatar
Randy Armstrong
Posts: 1668
03/06/2023 - 16:27

2

I am not aware of an JavaScript implementation of XML DA.

XML DA is a 20 year old spec that never had much adoption.

It makes more sense to look at using OPC UA with HTTP+JSON Encoding if someone was going to invest in a JavaScript library.

Avatar
Jiyang Hu
Posts: 10
03/06/2023 - 21:32

3

There exists a solution to let you use your preferable language to access DA/AE/HDA, supporting JavaScript/Python/Java/C++/C#/Swift etc. In my opinion it gives 20 years old legacy OPC a second life and modernizes them in a secure and safe way. It also brings legacy OPC to mobile device much easily and natively. Most importantly you don't need any DCOM knowledge and worry free for any future DCOM vulnerability or hardening issue. Here is the link. Cheers!

Avatar
Jennifer Whitman
Posts: 1
03/15/2023 - 03:46

4

jiyang.hu@aspentech.com said
There exists a solution to let you use your preferable language to access DA/AE/HDA, supporting JavaScript/Python/Java/C++/C#/Swift etc. In my opinion it gives 20 years old legacy OPC a second life and modernizes them in a secure and safe way. It also brings legacy OPC to mobile device much easily and natively. Most importantly you don't need any DCOM knowledge and worry free for any future DCOM vulnerability or hardening issue. Here is the link. Cheers!

  

Ok, thanks. I will try that code and if I still face any problem, I will message you. 🙂

Avatar
Jiyang Hu
Posts: 10
03/15/2023 - 14:09

5

Don't send me any questions I just happened to know such a solution and share itEmbarassed. Actually, folks posted questions in issues section of GitHub and got quick responses from developer. Good luck!

Avatar
Alexander Roos
Posts: 2
04/08/2023 - 04:15

6

I got quite a bit deeper into the topic. For everyone who is just getting started like me:

  • OPC XML DA is essentially XML documents sent via HTTP. You can send XML documents with your favorite fetch solution, e.g. [axios] if you're using [node].
  • There is a written specification that comes with examples. Search google for "opc xml da specification 1.01 doctype:pdf" to find the latest, or [ask the OPC Foundation], or download it from [the official site] if your organization has access.
  • You can find the XML specification [here]. Note that in some cases it disagrees with the written specification on whether a property is required, e.g. due to hierarchical parameters.
  • Since OPC XML DA uses SOAP, I am now using [node-soap] which makes it reasonably easy to use OPC XML DA in JavaScript. node-soap can be extended with TypeScript types and [wsdl-tsclient] is a project for converting .wsdl to types automatically. After a few tweaks to the .wsdl, it generated some reasonable results that I am refining manually. Let me know if you're interested in a copy of my types.
Forum Timezone:
America/Phoenix
Most Users Ever Online: 975
Currently Online:
Guest(s) 33
Currently Browsing this Page:
1 Guest(s)

Devices in use: Desktop (31), Phone (2)

Forum Stats:
Groups: 2
Forums: 10
Topics: 1517
Posts: 5134