I'm new to Java but trying to make a client that will connect and send SOAP request to a Server.
The script I'm trying to send works well via soapUI.
When I'm trying to use "my" client I'm getting following error:
"java.io.IOException: Server returned HTTP response code: 500 for URL: https://xxxxx/path-to-location at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)"
Here is my code:
"// Set the HostnameVerifier to the HttpsURLConnection HttpsURLConnection.setDefaultHostnameVerifier(verifier);