Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi people,
I deleted my first thread, as it seems the way I described my problem was a bit confusing. So I decided to keep it simple this time and focus on the core of my problem.
I want to call the Commerzbank API with a POST request that parses the Login Name and PIN of the bank customer:
My current approach is to a tRESTClient component, with the URL of the endpoint of the login and a JSON file as input schema, that contains username and PIN. The JSON looks like this:
I took "username" and "password" from the name of the input forms of the login page, is that the right thing to do?
My tRESTClient looks like this:
However, when I run the job, I am getting an "HTTP 400 Bad Request". Does my JSON need to have a certain format (right now it is a string)? The JSON tree inside the tWriteJSON component looks like this:
The schema looks like this:
Thank you in advance, every hint is greatly appreciated!
Mopi
Hello @Moritz Opitz ,
Please note that Talend APIs use standard HTTP status codes to indicate the status of a response. Error "400: Bad request" means The request is not valid or the wrong parameter format was used in your request. The request had bad syntax or was inherently impossible to be satisfied.
https://help.talend.com/r/vQuyKbfUusdSpNfjXGRM1Q/p~5Ke3hkzNB642ZLevy7Kg
Regards,
Vaishnavi
Hi Vaishnavi,
thank you for the response. I went trough both your links. From what I see in the TRESTClient docu, a simple GET call with Auhorization type "Basic HTTP" should do the job. After all, this is all I want to accomplish:
However, when I call the URL described on the picture along with the customer credentials, all I get as a response is an HTML of the login page.
Very weird....