Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

consuming https rest service in rest client

I am trying to consume "https://localhost:8899/carconfigservice/dev" service of "Get" type. As its Https i tried to set trust store variables as follows. I tried to browse same service with browser its returning expected result.

 

System.setProperty("javax.net.ssl.trustStore", "C:/keystore/keystore.p12");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");

 

 

Still i am facing the below problem.

 

[WARN ]: org.apache.cxf.phase.PhaseInterceptorChain - Interceptor for {https://localhost:8899/carconfigservice/dev}tRESTClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)at org.apache.cxf.jaxrs.c



To see the whole post, download it here
Labels (5)
1 Reply
Anonymous
Not applicable
Author

Hello,

From your screenshot, there is no connector between tjava and trestclient. Have you tried to use tprejob-->tjava-->oncomponentok-->trestclient?

Usually, we use tSetKeystore to load the cert before you connect to REST using tRESTClient for https end point. 

The workflow looks like: tsetkeystore(add certificates in local java keystore)-->onsubjobok-->trestclient

Best regards

Sabrina