<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Web Service Definiton]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">Is it possible to extract data with web service from this sample data (its returned in webpage):</p>
<pre><code>{"py/object": "detector.api.Snapshot", "time": 1607485618.4846845, "version": "v1.2.3", "detections": [], "antenna_gps": {"py/tuple": [01.12343455, 02.45542]}, "antenna_gps_locked": true, "antenna_temp": -6.816406250000001, "antenna_yaw": 354.90458852191114, "jamming": false, "is_battery_powered": false, "battery_percent": 0, "suspended": false}
</code></pre>
<p dir="auto">if yes, is it enought to fill in only name and url? Also in dci settings what is the correct parameter for example to get version info ?</p>
<p dir="auto">Egert</p>
]]></description><link>https://forum.netxms.org/topic/6872/web-service-definiton</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:10:08 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6872.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Jan 2021 09:33:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Web Service Definiton on Fri, 22 Jan 2021 15:04:16 GMT]]></title><description><![CDATA[<p dir="auto">As per your example above, JSON parser is failing on this part:<br />
"antenna_gps": {"py/tuple": [01.12343455, 02.45542]}</p>
<p dir="auto">You can check the syntax e.g. with this tool<br />
<a href="https://jsonformatter.curiousconcept.com" rel="nofollow ugc">https://jsonformatter.curiousconcept.com</a></p>
<p dir="auto">So I suppose that the data returned by this web service might change time after time and sometimes the data confirms with what the JSON parser expects.</p>
]]></description><link>https://forum.netxms.org/post/29342</link><guid isPermaLink="true">https://forum.netxms.org/post/29342</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 22 Jan 2021 15:04:16 GMT</pubDate></item><item><title><![CDATA[Reply to Web Service Definiton on Fri, 22 Jan 2021 08:55:09 GMT]]></title><description><![CDATA[<p dir="auto">Created Web Service Definition with name and url, also checked "verify the peer's SSl certificate" + "verify the certificate's name against host". Then created DCI with parameter "name:version", origin: web service, type: string and result is unsupported. What should i change ?</p>
<p dir="auto">Edit: Seems like sometimes the poll is succesful and othertimes it fails.</p>
]]></description><link>https://forum.netxms.org/post/29340</link><guid isPermaLink="true">https://forum.netxms.org/post/29340</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Fri, 22 Jan 2021 08:55:09 GMT</pubDate></item><item><title><![CDATA[Reply to Web Service Definiton on Thu, 21 Jan 2021 22:01:59 GMT]]></title><description><![CDATA[<p dir="auto">In current version of NetXMS JSON parser is failing on the leading zeroes of 01.12343455, 02.45542</p>
<p dir="auto">besides from that the parsert should be able to extract the part you need, e.g. for time the path in document should be just "time".<br />
So DCI parameter would be looking Name_of_your_web_service_definition:time</p>
]]></description><link>https://forum.netxms.org/post/29336</link><guid isPermaLink="true">https://forum.netxms.org/post/29336</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 21 Jan 2021 22:01:59 GMT</pubDate></item></channel></rss>