Skip to main content
12-Amethyst
March 1, 2024
Solved

How to send Winchill Part data to an ERP by API rest

  • March 1, 2024
  • 1 reply
  • 2999 views

Hi! I hope you all good!

At moment, we have a Java old solution to save data from a Part in a file (txt and xls) that is triggered on Life Cycle.

Unfortunelly now we will need to send by API to a outside ERP service.

I would want maintain this flow but not writing the result into a file, i need change to send by API rest service.

Have anyone a sample Java Code about how to do that?

In fact it´s a Totvs DataSul from Brazil integration, if someone has any idea to how to solve it, i'll appreciate.

Thank you!

Best answer by FabioValente

Thank you for providing links and guides.
While some were already familiar to me, they weren't particularly helpful.
Recently, I discovered a POST command within the Swagger services of Windchill, which, instead of connecting externally, allows interaction within Windchill itself.
So i did some searchs and my discovery stemmed from a clue provided by ChatGPT.

My initial difficulty arose from the assumption that Windchill offered a direct POST service to interact with other APIs.
Adjusting my approach, I focused solely on finding a Java "send/post" command within Windchill to experiment with. After some searching, I found the following:

HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/json");
connection.setDoOutput(true);

While I can generate XML if necessary, my current aim is to synchronize it with a JSON client's service.
Currently, I'm inquiring with my client about a testing environment to proceed with trials.

Once again, I appreciate everyone's assistance.

1 reply

14-Alexandrite
March 1, 2024

Oi tudo bom! Hello

 

We offer an easy and cost-effective solution for seamlessly transferring Windchill data from a release process to an ERP or third-party web service. It's called the FELCO PLM Integrator. If you'd like to discuss it further, please feel free to reach out to me at any time.

 

Learn more:

https://www.felcosolutions.com/plm-integrator

 

Thank you/Obrigado 

 

J.D. Felkins 

jfelkins@felcosolutions.com 

 

12-Amethyst
March 1, 2024

Appreciate your answer.

We got a solution working, just need to "upgrade it".

And the Customer don´t have budget to pay more.

Thank you

HelesicPetr
22-Sapphire II
22-Sapphire II
March 4, 2024

Hi @FabioValente 

So you need to rewrite your solution to use the restApi. or use the communication tools with target system.

communication tool can be what the target ssystem supports. 

WebServer, own RestAPI or another method. 

 

PetrH