Skip to main content
1-Visitor
February 8, 2017
Solved

Not able to connect to thingworx via Java sdk extension

  • February 8, 2017
  • 1 reply
  • 1567 views

i have one java program and i am trying to connect to thingworx through java sdk extension.

i have used below code:

ClientConfigurator config = new ClientConfigurator ();

config.seturi();

config.setappKey();

config.ignoresslerrors(true);


But not able to connect to thingworx. its giving Timeout exception

Best answer by dupatel

Kedar Borkar

You will have to pass valid argument with methods as below -

config.setUri("ws://10.196.110.229:8080/Thingworx/WS");                

config.setAppKey("800d296f-1563-4d5f-bd5e-4ff23f959eca");                   

config.ignoreSSLErrors(true);

Note: Do not put the same details as it will not work and should be according to your environment.

-Durgesh

1 reply

dupatel5-Regular MemberAnswer
5-Regular Member
February 8, 2017

Kedar Borkar

You will have to pass valid argument with methods as below -

config.setUri("ws://10.196.110.229:8080/Thingworx/WS");                

config.setAppKey("800d296f-1563-4d5f-bd5e-4ff23f959eca");                   

config.ignoreSSLErrors(true);

Note: Do not put the same details as it will not work and should be according to your environment.

-Durgesh