call the URL using java stand alone program
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   govind_raju
Posted On:   Wednesday, September 6, 2006 04:57 AM

Dear Friends...  I want to call the URL ( href="http://10.200.75.207:7030/invoke/?request.xml"> color=mediumblue>i am using http://10.200.75.207:7030/invoke/?request.xml color=brown>) by using the java stand alone program and display the response object value . Here i m passing the xml file as input. if you know any thing abt this, pls write me. Thanks in advance Regards Govind    More>>







Dear Friends...


 I want to call the URL (
href="http://10.200.75.207:7030/invoke/?request.xml">
color=mediumblue>i am using
http://10.200.75.207:7030/invoke/?request.xml

color=brown>)


by using the java stand alone program and display the
response object value . Here i m passing the xml file as input. if you know any
thing abt this, pls write me.


Thanks in advance


Regards


Govind




   <<Less

Re: call the URL using java stand alone program

Posted By:   govind_raju  
Posted On:   Wednesday, September 6, 2006 05:47 AM


I resolved my problem. i am using following code :


URL url = new URL(href="http://10.200.52.101:8080/salweb/">http://10.200.52.101:8080/salweb/);


URLConnection conn = url.openConnection();


BufferedReader in = new BufferedReader(new
InputStreamReader(conn.getInputStream()));


String line; while ((line = in.readLine()) != null) {


 System.out.println(line);


}

Re: call the URL using java stand alone program

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, September 6, 2006 05:43 AM

Take a look at java.net.HttpURLConnection, or apache commons HttpClient. If you want to get the entire HttpRequest object: you're not going to get it. It's client/server, so the client cannot have the server objects.
About | Sitemap | Contact