Forum Home › Forums › Uncategorized Issues › Rest API client communication
- This topic has 7 replies, 2 voices, and was last updated 1 year, 2 months ago by
Mikhail.
-
AuthorPosts
-
August 7, 2024 at 10:54 am #15102
rajatdas2005
ParticipantI have installed Rapid Scada in a Windows system. I have a standalone OPCUA server running and server variables is visible in RapidScada OPCUA client. Now from a separately running RestAPI client, I want to get and post the OPCUA client variables present in Rapid Scada through url and json structure. Please guide me how I can do this ?
August 7, 2024 at 11:49 am #15103
MikhailModeratorAugust 14, 2024 at 5:55 pm #15126rajatdas2005
ParticipantI want to read/write OPCUA variables from an rest-api client application (get/post). In the rest-api I am providing url’s like “http://localhost/Api/Main/GetCurData?cnlNums=101-103” or “http://10.135.114.17:10000/Api/Auth/Login”. But in the rapid scada server log I am getting error as “incorrect format of data received from client data length is too big”.
Please tell me what will be the right url to access the opcua variables from rest api client application.
-
This reply was modified 1 year, 3 months ago by
rajatdas2005.
August 15, 2024 at 7:51 am #15130
MikhailModeratorHello,
Rest API works via the TCP port of the web application. It is not 10000, which is the Server’s TCP port.August 15, 2024 at 10:22 am #15131rajatdas2005
ParticipantHi,
Thank you for your reply. From the architectural diagram, it is visible that external applications can communicate only with the rapid scada server. So what will be the correct url so that I can access opcua client variables from an external application via rapid scada server ?August 16, 2024 at 9:56 am #15144
MikhailModeratorHi,
To use REST API you should connect to the web application. The Server application supports custom TCP-based protocol. See this link for more details.September 24, 2024 at 9:21 am #15500rajatdas2005
ParticipantHi in Rest API GET call I am (http://192.168.1.2:10008/Api/Main/GetCurData?cnlNums=101) and POST (http://192.168.1.2:10008/Api/Main/SendCommand).
Instead of these cnlNums=101, is it possible to do GET and POST call by the variable name itself ?
September 24, 2024 at 11:56 am #15501
MikhailModeratorHi,
No. The request format should be as you posted. -
This reply was modified 1 year, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
