Currently, I face the difficulties that there are some lacking libraries when I consuming rest API in Ivy plugin I follow this instruction : https://answers.axonivy.com/questions/2477/how-to-register-my-code-that-runs-on-every-engine-startup When user logs in, logs out or gets time-out, I want to call rest service to do some stuff: But I get an error like this when calling rest service in the plugin: Currently, I just add some dependencies like this picture into the plugin but it doesn't work Do you have any hint or any suggestion for this problem? Thanks in advance :) asked 03.06.2019 at 09:22 Genzer Hawker Reguel Werme... ♦♦ |
I do not see the point in using the plain JAX-RS api to solve this issue. With such a solution you will loose all ivy features around REST api usage. Such as enhanced logging, monitoring and environment based configurations.... With Further samples on this approach can be found in the answered 11.06.2019 at 04:29 Reguel Werme... ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 03.06.2019 at 09:22
Seen: 1,576 times
Last updated: 11.06.2019 at 04:34
not answering your question, but I'd wrap authorization header setup in a JAX-RS feature. Then you could enable it globally in the 'Rest Clients' configuration. No explicit invocation on clients is required therefore. A sample is shown in the ConnectivityDemos: com.axonivy.connectivity.rest.client.filter.TwitterOAuthFilter