Creating a REST call to the EMS to execute a service on the Thingworx Platform
We are trying to call a service on the Thingworx platform, not directly, but via the EMS channel. Our assumption is that once our EMS communication channel has been established, we can make REST calls to the EMS and our REST call will travel to the Thingworx platform to where the execution of the service will take place. We are making this REST call on the same PC as our EMS is running but are running into "401 Authentication Required" errors. In our config.json, we have ssl and certificates enabled.
Using Postman, we POST: https://localhost:9000/Thingworx/Things/<Thing name>/Services/WhatsMyName (note the use of https)
In our header we pass the appKey = <app key>, Content-Type = application/json, Accept = application/json, x-csrd-token and x-thingworx-session = false.
No matter what we seem to try, we just get the "401 Authentication Required" error. We assume this error is on the EMS side and not the Thingworx platform side.
My questions:
1) Is it possible to call the EMS and have the EMS simply act as a conduit to the Thingworx platform?
2) Are the header parameters correct or are we missing something?
3) Is there a configuration we need to do on the EMS side to make this REST call a success?
4) Is there any helpful logging that will help pinpoint the specific cause of this error?
Any help is appreciated. Thanks

