Skip to main content
4-Participant
August 27, 2024
Question

How to invoke Windchill Rest APIs inside Windchill Server side utilities

  • August 27, 2024
  • 2 replies
  • 1823 views

Version: Windchill 12.1

 

Description:

 I need to retrieve 3D thumbnail image for given Part. Looks like it is possible using Windchill OData Rest APIs.
can someone please let me know how to retrieve it in Windchill server side utility? Is it possible to bypass the Authentication as we are invoking from Windchill server side.

2 replies

14-Alexandrite
August 27, 2024

Generally speaking, you should search for Java API if you would like to retrieve it on server-side.

 

+ Starting from Windchill 13.0.2, it's possible to call REST APIs server-side via WRSCaller wrapper, see https://support.ptc.com/help/windchill/r13.0.2.0/en/Windchill_Help_Center/customization/WindchillCustomizationUsingWRS.html# 

3-Newcomer
September 2, 2024

Hi Tarik, 
Thanks for the response. But currently we are using 12.1 version of windchill.

HelesicPetr
22-Sapphire II
22-Sapphire II
August 28, 2024

Hi @AP_10304246 

If you need it inside a Windchill so use standard java API to get the thumbnail. 

PetrH

PetrH
3-Newcomer
September 2, 2024

Hi PetrH,
Thanks for the response. I got Windchill API to retrieve the thumbnail. But I am curious to know if I need to call Windchill
Rest APIs inside windchill how to achieve that.

HelesicPetr
22-Sapphire II
22-Sapphire II
September 2, 2024

Hi @AP_10304246 

I use "setRequestProperty".

HelesicPetr_0-1725282342556.png

PetrH

PetrH