JavaScript OPC XML DA client|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
JavaScript OPC XML DA client
Avatar
Alexander Roos
New Member
Members
Forum Posts: 2
Member Since:
03/06/2023
sp_UserOfflineSmall Offline
1
03/06/2023 - 12:26
sp_Permalink sp_Print

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
Admin
Forum Posts: 1578
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
03/06/2023 - 16:27
sp_Permalink sp_Print sp_EditHistory

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
Member
Members
Forum Posts: 10
Member Since:
06/10/2014
sp_UserOfflineSmall Offline
3
03/06/2023 - 21:32
sp_Permalink sp_Print

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
New Member
Members
Forum Posts: 1
Member Since:
03/14/2023
sp_UserOfflineSmall Offline
4
03/15/2023 - 03:46
sp_Permalink sp_Print

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
Member
Members
Forum Posts: 10
Member Since:
06/10/2014
sp_UserOfflineSmall Offline
5
03/15/2023 - 14:09
sp_Permalink sp_Print

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
New Member
Members
Forum Posts: 2
Member Since:
03/06/2023
sp_UserOfflineSmall Offline
6
04/08/2023 - 04:15
sp_Permalink sp_Print sp_EditHistory

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: 510
Currently Online:
Guest(s) 27
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1444
Posts: 4887