Rest API client communication

Forum Home Forums Uncategorized Issues Rest API client communication

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15102
    rajatdas2005
    Participant

    I 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 ?

    #15103
    Mikhail
    Moderator

    RESP API functions provided by Rapid SCADA can be found here. URL examples are given in the source code. You can call them either from client or server code.

    • This reply was modified 1 month, 1 week ago by Mikhail.
    #15126
    rajatdas2005
    Participant

    I 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.

    server error log

    #15130
    Mikhail
    Moderator

    Hello,
    Rest API works via the TCP port of the web application. It is not 10000, which is the Server’s TCP port.

    #15131
    rajatdas2005
    Participant

    Hi,
    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 ?

    #15144
    Mikhail
    Moderator

    Hi,
    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.