Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Build a service which receives a response from a web service and the values which it gets in the response(JSON) are binded to the properties of a Thing.
Can you provide more details on the usecase? There might be an alternate solution to achieve what is intended.
To answer the question directly - the service can set the property on the Thing directly.
If the service is written in the same thing -- me.myproperty=<value>
or Thing["myThing"].myproperty=<value>
Look for the service PostJSON which takes as its parameter an external web URL.It should be on the ContentLoaderFunctions Resource. The web interface you are requesting has to be RESTful, I believe.
Hope this helps!
Tori
Hi Priyanshi,
You got the answers in the reverse order
First, as Tori said, look at ContentLoaderFunctions Resources, where you have plenty of services to call remote web services ( REST calls: POST, GET, DELETE,... , PostJSON/Text/XML, GetJSON/Text... ).
Then once received the result and parsed accordingly depending on your remote web service, you can use what Sajid said, set Thing current properties ( me.propertyName=value, or another thing Things["thingName"].propertyName = value; )
Best Regards,