Skip to main content
1-Visitor
July 30, 2016
Question

403 error trying to connect ADO Service via EMS

  • July 30, 2016
  • 2 replies
  • 4521 views

Hi, I'm trying to test connecting the ADO Service to ThingWorx via the Edge Microserver. ADO, EMS and ThingWorx Server are all installed on the same PC. If I configure ADO to talk direct to the Thingworx Server it connects ok. When I configure ADO to connect to EMS I get the following error in the ADO logs:

2016-07-29 23:48:18.625Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] twWs_Connect: Error initializing web socket.  Response code: 403

This seems to correspond to this error in the EMS logs:

29T23:48:18,650","origin":"RestThingworx::callback","content":"Handling request"}

{"level":"DEBUG","timestamp":"2016-07-29T23:48:18,654","origin":"[-0700] HTTP Server","content":"1.0.0.127 - SeqId 76 - \"GET \/Thingworx\/WS HTTP\/1.1\" 403 0 \"-\"\n"}

EMS is connected to ThingWorx ok. Any ideas what I'm doing wrong?

Regards,

Greg

2 replies

5-Regular Member
August 2, 2016

Greg, is there a reason why you are trying to connect the ADO service to the Edge Microserver? We do have a separate ADO Edge client available which you can directly use to connect/ pair your database.

gmcnamara1-VisitorAuthor
1-Visitor
August 2, 2016

Thanks Aanjan, by ADO service I mean I’m using the ThingWorx ADO Service v5.6.1.1100. I would like to route everything through an edge gateway device running EMS. In the documentation for the ADO service it mentions connecting via the EMS but I can’t get it to work. Is there a different ADO edge client I should be using? Could you please send me a link to download?

Regards,

Greg

5-Regular Member
August 2, 2016

You wouldn't need to use the EMS at all; you can just configure the AdoThing.xml to connect to your platform and your database. For the platform settings, you would need a host name, port, appKey and security (ssl) information. For the database settings, you would need the type of DB (OleDb etc) and the connection string.

On the ThingWorx platform, you would need to create a Thing and make sure the name matches the once specified in the AdoThing.xml. Here's a direct link to our ADO section on the Edge Help center which goes into more detail regarding setting up the connection.

gmcnamara1-VisitorAuthor
1-Visitor
August 2, 2016

Thanks Aanjan. I'm trying to avoid connecting the industrial PC to the internet (firewall issues) which is why I want to channel via EMS installed on a gateway hardware. Are you saying that it's not possible to connect the ADO service to EMS? It does mention that scenario in the documentation so I would like to try to get it working that way.