ThingWorx Kepware Server IoTGateway Rest-Client to ThingWorx Kepware Server IoTGateway Rest-Server
Good day!
I have a use case where I must take some OPC-UA tags and send them to a REST server which is then connected to another OPC-UA server using ThingWorx Kepware Server on both sides. Here is what my configuration looks like:
- ThingWorx Kepware Server on Remote PC configured as a REST server. This REST server is bound to one FLOAT type tag on a test OPC-UA server. I can read it and write to it just fine using powershell and my web-browser.
- ThingWorx Kepware Server on Local PC configured as a REST client. The REST client points to the REST server configured earlier and reads one FLOAT type tag from the source OPC-UA server (production data). The idea is to publish this OPC tag to the REST server earlier (which should then automatically update a tag on the test OPC-UA server it is bound to).
I tried to do this using the Standard Template in the REST client's message body but I keep getting ERROR 500. I can use the Advanced Template like this and it works but the value is obviously static,
[{id: Tag on My REST Server,v: 22}]
I want the value to be written dynamically (fed from the source or prod OPC-UA server). When I do something like this, I get ERROR 400.
[{id: Tag on My REST Server,v: |TAGVALUE|}]
Is what I am trying to do even possible? I want to make two OPC-UA servers talk to each other but with a REST-API acting like a middle-man. If this is not possible, I would also be completely open to exploring other protocols once the data makes it to the REST Server. I would just like to dynamically write to a ThingWorx Kepware Server based REST server from a ThingWorx Kepware Server based REST client if that makes sense. Thanks for your guidance and support in advance.
A visualization of what I am trying to achieve.




