REST API for Teamcenter

0
Could someone provide guidance on creating and using the REST API for Teamcenter services? I previously worked on the TcConnector and utilized the Expand One level service to retrieve an entire BOM structure from Teamcenter using a recursive method and Expand All level service as well. The time taken to fetch entire BOM Structure which contains 5000 BOM lines from Teamcenter using TcConnector was around 10-15 minutes. Siemens recommended using the REST API to improve performance. Please share the steps to achieve this.
asked
1 answers
0

Hi,

 

The TcConnector is already using the rest API. What can be not well optimized is the loading of the Teamcenter response (JSON) to Mendix object, this is what the connector names the "Object Mapping". 

Since you already have your test working with the connector, it's easy for you to use my module Mendix Marketplace - Teamcenter Connector Toolbox Samples and replace your call by this one "CallTeamcenterService_JSON_output", which expects the same inputs, but returns the raw JSON and skip the "object mapping". If the performance is still not good, you should look at Teamcenter side. In handling the raw response, you may find this useful "Call_postProcessor_JSON_VariableKeysToArrays".

 

Alternatives : 

  • PLMXML export
  • Be aware that R&D in working on a Mendix widget to display large BOMs from TC 
answered