Hello,
I need to access a soap web service on a remote software
I have a Java 8 server that needs to access it
I have the following code but I dont know if it works

URL url = new URL(service);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

String authHeaderValue = "Basic RkxxNUd2Z1JtWjNTTEFQR1o4SW5QVDE4RGo2ZEtFSmM6QWROZj B2NlNOeXBkZEVuaw==";
conn.setRequestProperty("Authorization", authHeaderValue);

BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));
String output = br.readLine();

service is the url of the web service. The service is supposed to send back a json containing a token

When I try to execute this code it says "Connection timedout"

Is my code correct ? thank you for your help