This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes third party url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "third party url" Watch "third party url" New topic
Author

third party url

Rajesh Gudikoti
Greenhorn

Joined: Sep 01, 2009
Posts: 7
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

Joined: May 29, 2005
Posts: 479
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

Joined: Sep 01, 2009
Posts: 7
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: third party url
 
Similar Threads
Ajax application response time
XML Parsing exception: org.w3c.dom.ls.LSException
Enabling SSL
NoSuchMethodError when Call.invoke is invoked in Axis2
How to call external service(Third party api) from Enterprise bean(Session bean)