Service Studio Version : 10.0.1013.0

Web Module

I am trying to consume REST getting the below error. 

1. Test-->EntitytoREST is created on same environment. 

EntitytoREST is not having any input parameter and its working as expected.

 When i try to Consume the above REST i am getting the below Error. i have ssl certification installed on the same server. I Tried with my F5(SSL Certification installed) URL as well the direct dev server URL both got same error. 

Are you doing HTTPS REST API call to the same server?
Does this work with localhost?

Swatantra Kumar wrote:

Are you doing HTTPS REST API call to the same server?
Does this work with localhost?

Yes when I hit the request in the browser it’s working. When I try to consume I got the above error 


RMS wrote:

Swatantra Kumar wrote:

Are you doing HTTPS REST API call to the same server?
Does this work with localhost?

Yes when I hit the request in the browser it’s working. When I try to consume I got the above error 


That does not answer the questions that Swatantra asked.

Unless you tested in the browser with localhost:// in the Uri 



Test REST will call REST service from your server instead of your PC.


According to your error message, the problem is related to your server certificate.

1. Whether your server certificate match the host name in your REST Service Endpoint ?

  If not, your need make them same.

2. Whether you are using self-signed certificate ?

   If yes, you need config Java on your Server to trust root CA of your certificate.

   https://www.outsystems.com/forums/discussion/10794/web-services-unable-to-find-valid-certification-path-to-requested-target/


Regards

Wei

FYI - The setup RMS is using has the F5 VIP (load balancer) performing the SSL termination.  The communication between the F5 and the actual Front End server is done over HTTP.  Also, we use WebLogic not JBoss.  I'm not sure if this effects or changes the response at all.

You are consume rest exposed by outsystems.

That mean when test, communication are from your fe server (as webclient) to f5 via https, then from f5 to your fe server (as webserver) via http.


Usually this error mean your fe server(as webclient) can not valid the SSL certificate installed on f5.

So you need check whether your hostname in url matched with SSL certificate and  whether java on your fe server trust your SSL certificate.

No matter which application sever you are using.