Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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!
Solved! Go to Solution.
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.
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
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
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
Thank you for your time @HelesicPetr
It´s what i want, but can´t find any documentation about how to do it.
I did found a Windchill Integration Object Framework (IOF), that maybe it's what i need.
Still looking for a little more documentation and samples about how to do it.
Any help or hint would be welcome.
Reggards,
You can use a RESTApi to drill out data from Windchill or you can write own java API in windchill to send the data from there.
Officially the documentation does not exist how to write application to integrate the Windchill with other systems.
CS335170 - Windchill PLM - API Catalog for OData REST Services (Swagger)
CS254366 - Windchill REST Services (WRS)
CS60345 - Customization Guide of Windchill PLM
and PTC knowledge base in general https://www.ptc.com/en/support
PetrH
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.