Skip to main content
1-Visitor
Jun 23, 2021 11:29 AM UTC
Solved

How to call external REST webservices from Creo parametric

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

sjurajAnswer
15-Moonstone
Jul 1, 2021 8:07 AM UTC

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.

3 replies

17-Peridot
Jun 28, 2021 10:18 AM UTC

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.

Translate
15-Moonstone
Jul 1, 2021 8:05 AM UTC

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

Translate
sjuraj15-MoonstoneAnswer
15-Moonstone
Jul 1, 2021 8:07 AM UTC

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.

Translate