WSEMS connection issues - Thingworx Utilities Asset Manager Tutorial
I´m trying to get a WSEMS connection from my PC to the ThingWorx Platform (30 days hosted version, so not locally installed).
When i start the WSEMS i get this error message:
...
{"level":"INFO","timestamp":"2016-09-22T15:16:35,42","origin":"wsEmsProxy::initialize","content":"Initialization complete!"}
{"level":"INFO","timestamp":"2016-09-22T15:16:35,45","origin":"C:\Users\buss\Thingworx\ThingWorx Utilities\microserver\wsems.exe","content":"Starting the connection."}
{"level":"ERROR","timestamp":"2016-09-22T15:16:35,122","origin":"SDK","content":"twWs_Connect: Error initializing web socket. Response code: 404"}
I downloaded the Web Socket Edge Micro Server from the Thingworx Utilities Asset Manager Tutorial (MED-61060-CD-053_SP2_Microserver-5-3-2-Win32).
The config.json file lokks like this:
{
"ws_servers": [{
"host": "**.***.***.***",
"port": 80
}],
"http_server": {
"port": 8000
},
"appKey": "******************************",
"ws_connection": {
"encryption": "none"
},
"logger": {
"level": "INFO",
"publish_directory": "C:\\Thingworx\\MicroServer\\edge\\logs",
"publish_level": "INFO",
"max_file_storage": 2000000,
"auto_flush": true
},
"certificates": {
"validate": false,
"allow_self_signed": true
},
"tunnel": {
"buffer_size": 8192,
"read_timeout": 10,
"idle_timeout": 300000,
"max_concurrent": 4
},
"file": {
"buffer_size": 8192,
"max_file_size": 8000000000,
"virtual_dirs": [{
"tw": "C:\\Thingworx\\MicroServer\\edge\\tw"
}, {
"other": "C:\\Thingworx\\MicroServer\\edge\\other"
}],
"staging_dir": "C:\\Thingworx\\MicroServer\\edge\\staging"
}
}
When i try it with the local trial ThingWorx platform it works (as host address: localhost), but not for this non local instance.
Am i doing something wrong? Or did i missunderstand anything of WSEMS connectivity?
Thanks for any advices
Keijo

