CONSUME SIMPLE REST

CONSUME SIMPLE REST

  

I'm trying consume a REST API with Authorization on the Header and anothers parameters on body, but the response is:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I've tested on SoapUI with sucess.


Hello Bruno.

This error means that the SSL certificate on the server is not trusted. Maybe the REST service is on a server with a self-signed certificate.

Check if you can consume the service using HTTP, or try installing a trusted certificate on the server.

What settings do you have? you have tested it in SoapUI, so how is the landscape there? Some info will help, but like Leonardo said it has to do with SSL certificates.