I am creating just a basic Java project to test connectivity with Visa. I have the helloworld working in SOAPUI but when I test it with Java code I get a 404 exception. I can't see what is wrong with my request. It looks the same as the SOAPUI raw request.
Here is my request:
GET https://sandbox.api.visa.com/vdp/helloworld Accept: application/json, application/*+json Content-Length: 0 Authorization: Basic NUUxNVlZUkw0RFhLNk5ZNEw4RkkyMURmRTk4MklVMHM4M3lpclBXbEtHMFpZMUVmWTowZHdGbklNZGN5MnRYU3lQMDgxSzBWMG5iRDZNOVAxNXhJdkxBZw==
Hey, I figured out the issue. I am using spring's restTemplate and it seems to send the following Accept header by default: Accept: application/json, application/*+json I forced the code to only send: Accept: application/json and it worked. To be honest, this seems like an issue on the Visa side. The first request seems to be sending a valid Accepts header.