Scada-LTS icon indicating copy to clipboard operation
Scada-LTS copied to clipboard

Do we have json api to write tags ? or data points

Open abhishekricky opened this issue 6 years ago • 7 comments

Do we have json api to write tags ? or data points

abhishekricky avatar Mar 01 '18 20:03 abhishekricky

Yes, We have REST API to save and read data for data point. I will try to prepare an example of the REST API. It is to improve the security of the REST API.

grzesiekb avatar Mar 02 '18 07:03 grzesiekb

I just browsed over API, did find following api

"/api/point_value/setValue/{xid}/{type}/{value}"

Value does change on the watchlist point, but it doesnt change on modbus device and later it reverts to original

abhishekricky avatar Mar 02 '18 17:03 abhishekricky

@grzesiekb I tried the SOAP api for writeData but getting below error

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> soapenv:Body soapenv:Fault soapenv:Server.userException org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">remote</ns1:hostname> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>

abhishekricky avatar Mar 02 '18 19:03 abhishekricky

@abhishekricky Could you add the definition of modbus which you didn't update from REST API "/api/point_value/setValue/{xid}/{type}/{value}".

grzesiekb avatar Mar 03 '18 13:03 grzesiekb

api end point I used -> /api/point_value/setValue/{xid}/{type}/{value}

/api/point_value/setValue/DP_152354/2/16

And it was Holding Register -> Address 34 ( Format is unsigned Integer )

abhishekricky avatar Mar 04 '18 11:03 abhishekricky

Please write to me email [email protected].

grzesiekb avatar Mar 05 '18 11:03 grzesiekb

When I use configureDataSource wsdl soap api I have same issue org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType

Have you solved?

rinose avatar Nov 04 '18 19:11 rinose