Article - CS310440

Unable to call Lua Script Resource (LSR) service from Edge Micro Server (EMS)

Modified: 24-Jul-2019   


Applies To

  • ThingWorx Edge MicroServer 5.0 to 5.4.6
  • ThingWorx Platform 8.0 to 8.4

Description

  • Cannot call a service defined in LSR through EMS
  • Unable to call custom EMS services (service definitions accessible as remote services on the corresponding ThingWorx thing entity) directly via the EMS REST API
  • Need to be able to use <protocol>://<server>:<port>/Thingworx/Things/LocalEms/Services/<Service Name> rather than <protocol>://<server>:<port>/Thingworx/Things/<Thing Name>/Services/<Service Name> which routes the request first to the ThingWorx server and then down to the edge device
  • Calling a custom service using the LocalEms in the URL, returns a 400 error
  • Need to call the service locally as edge device may not always be connected to ThingWorx
  • Need to use the EMS to programmatically interact and retrieve data using local properties and services defined in the EMS template file
This is a printer-friendly version of Article 310440 and may be out of date. For the latest version click CS310440