Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

third party url

 
Rajesh Gudikoti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
we are calling thid party url which will process our request and send us the xml response. When this third party URL is directly called from browser it is sending proper xml response but when called from our application it is not sending any response. The thrird part URL is related to SAP server and our application is running IBM websphere. Since we are calling URL on server side do we need below jvm settings
Dhttp.proxyHost=proxyip -Dhttp.proxyPort=8080

please guide me.

Thanks in advance

Regards
Rajesh
 
Ralph Cook
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to say how you are 'calling' this URL from java, and why you say you are not getting any response. There is not enough information in your question for anyone to help you.
 
Rajesh Gudikoti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.net.URL url = new java.net.URL(xmlUrl);
java.net.HttpURLConnection con = (java.net.HttpURLConnection) url.openConnection();
// POST a message
con.setRequestMethod("POST");
//con.setAllowUserInteraction(false); // you may not ask the user
con.setDoOutput(true); // we want to send things

earlier client was complaining about 500 internal server error, once they changed settings to allow to acces url from other application, the 500 error is gone but they are not getting any response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic