1

I can connect to the API via Firefox's RESTClient, but not through my java app.

HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("POST");
        conn.setRequestProperty("Content-Type", "application/xml");

Also, url = https://<myCompany:myPort>/vportal/services/xml/api

All of the variables match what I'm using in RESTClient, but I keep getting HTTP error code: 500

Does anyone see why I may not be able to connect? Thanks.

rebeliagamer
  • 1,257
  • 17
  • 33
Joe Essey
  • 3,457
  • 8
  • 40
  • 69

1 Answers1

0

There was a firewall blocking my connection between VM and cloud server. I was connecting to the APY via Firefox on my local machine and using the app on a VM.

Joe Essey
  • 3,457
  • 8
  • 40
  • 69