RESTful Web Service API - Write (PUT)

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
andis59
Posts: 13
Joined: Mon Apr 08, 2013 11:50 am

RESTful Web Service API - Write (PUT)

Post by andis59 »

I'm trying to read and write Tag values from an external program using the RESTful Web Service API.

I have managed to get the read part to work, but not the Write!

What I can see my program is sending the PUT call as described in the Reference Manual, but all the response I get is

Code: Select all

{"Code":404,"Message":"Resource not found"}
The request looks like this (from Fiddler)

Code: Select all

PUT http://192.168.1.10/tags/laserLayout HTTP/1.1
Accept: application/json
User-Agent: RestSharp/105.2.3.0
Content-Type: application/json
Host: 192.168.1.10
Cookie: SID=866c831203
Content-Length: 36
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

{"name":"laserLayout","value":"222"}
Any ideas on what is wrong and how to fix it?

// Anders

andis59
Posts: 13
Joined: Mon Apr 08, 2013 11:50 am

Re: RESTful Web Service API - Write (PUT)

Post by andis59 »

I had a talk with Support and they can't get it to work either!

But it's possible to use the TagBatch command.
I can't get the getTag to work, but the putTag works.

No error message if you try to update a tag that doesn't exist!

Sort of a work around, but not very good!

Hope these bugs will get fixed!!!!

Post Reply