cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Using ThingWorx OData connector for calling Windchill Rest Services (odata services)

Using ThingWorx OData connector for calling Windchill Rest Services (odata services)

  1. Make sure your Thingworx is set up with an Integration Runtime.
  2. Create an 'Integration Connector' in Thingworx of Type 'OData Connector' with below Configurations:
    • Generic Connector Connection Settings
      • Authentication Type: Fixed (if your windchill is of basic authentication)
    • CSRF Settings
      • Relative URL For CSRF Get Request : servlet/odata/PTC/GetCSRFToken()
      • CSRF Token Name : csrf_nonce
    • OData Connector Connection Settings: (add the domains/area you want to work. in the example we add ProdMgmt and DocMgmt)
      • ProdMgmt
      • DocMgmt
    • HTTP Connector Connection Settings
      • Username: <Windchill Username>
      • Password: <Windchill Password>
      • Base URL: http://<windchill_server>:<port>/Windchill
      • Relative URL: servlet/odata
  3. Save the connector/entity.
  4. Go to "Services".
  5. Execute "ValidateConnection", it should be successful with response code 200.
  6. Add a new service by clicking ' + ' (add icon) > "Route" and add below details:
    • Under "Service Info" section:
      • Name: <service name you want>.
    • Under "Route Info".
      • Endpoint: <select the desired endpoint from the dropdown>.
  7. Click "Done" > "Save".
  8. Click execute with (and provide inputs/parameter). You must see the results.