JSON CALL -Help


#1

Hy,

I’m trying to use JSON Call step with POST method but I received WLA_TARGET_UNREACHABLE.
In Url I put the rest service url :https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/ws/tva
In the Input Template I put a test JSON: "{“cui”:“8586712”,“data”:“2018-01-05”}"
In Headers I put parameter Content-Type with value application/json.

Thanks!


(Katrin Popova) #2

Hello,

From the information you provided us, I saw that HTTPS protocol is used. In this case, SSL certificate needs to be imported to JAVA keystore. This could be done by using keytool. The syntax is the following:

keytool -importcert -alias <certificate_alias> -file <certificate> -keystore <target_keystore>

Where:

  • <certificate> is the path to the .crt file
  • <target_keystore> is java keystore by default located in <DQC_HOME>/jre/lib/security/cacerts

Keytool will first ask for a password of the keystore, which is “changeit”. Then it will show information about the certificate and ask you for approval, you need to click “yes”.

Best regards,
Katrin Popova