Skip to main content
Apr 14, 2021 3:12 PM UTC
Question

Rest Service in Windchill

Hello,

 

I need to create a Rest service where it can be invoked by an external system. I have achieved the same using Soap Web Services but not with Rest. Please provide your inputs on how to implement the same.

 

Thanks in advance.

 

Regards,

Sha

2 replies

Apr 14, 2021 3:43 PM UTC

Hi Sha,

 

All you need to do is make one rest entry like below in your rest.properties.xconf. Even you can have custom xconf with target as rest.properties. I found one at location Windchill\codebase\com\ptc\windchill\uwgm\rest\xconf but there are more in Windchill.

 

Ajit_Kulkarni_0-1618414833112.png

 

You also need to have a java class file in codebase. 

 

You can follow article https://support.ptc.com/help/windchill/whc/whc_en/index.html#page/Windchill_Help_Center/NewandChanged_REST_Odata.html , https://support.ptc.com/help/windchill_rest_services/r1.6/en/index.html#page/windchill_rest_services%2FWCCG_landing_page_HC.html%23 

 

to write the java code. 

 

Hope this helps!!

 

Regards

Ajit

 

Sha11Author
Apr 14, 2021 3:53 PM UTC

@Ajit_Kulkarni - Thank you for the information. I will check them out.