Skip to main content
14-Alexandrite
April 14, 2021
Question

Rest Service in Windchill

  • April 14, 2021
  • 1 reply
  • 1525 views

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

1 reply

16-Pearl
April 14, 2021

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

 

Sha1114-AlexandriteAuthor
14-Alexandrite
April 14, 2021

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