Skip to main content
1-Visitor
June 23, 2021
Solved

How to call external REST webservices from Creo parametric

  • June 23, 2021
  • 2 replies
  • 2950 views

Hello,

 

I am new to Creo parametric. I am getting "Startup of Application failed" dialog popup when I try to run a jlink application through Auxiliary Applications option under Tools menu. This jlink application is calling some cloud Rest APIs. If I remove these Webservice calls, then the jlink app runs fine.

 

Is there any option to call external REST services from Creo Parametric? Or any option to trigger separate program which in turn can call these web services?

 

Thanks,

Apoorva

Best answer by sjuraj

Calling REST api from jlink is easy. Error you get is not caused by your code. It could by caused by wrong classpaths, not found resources etc.

2 replies

17-Peridot
June 28, 2021

Did you use some external Java library for REST call?

Maybe, Creo can't found this library. Add any library to the *.dat file using java_app_classpath option.

15-Moonstone
July 1, 2021

You can also bundle all dependencies in one jar file with maven assembly plugin https://stackoverflow.com/questions/1729054/including-dependencies-in-a-jar-with-maven

sjuraj15-MoonstoneAnswer
15-Moonstone
July 1, 2021

Calling REST api from jlink is easy. Error you get is not caused by your code. It could by caused by wrong classpaths, not found resources etc.