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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

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.
1 Comment
olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.