This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help making XML request from servlet  RSS feed

 
scott kuenzli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an existing servlet that now must send an outbound http request of a remote URL with an XML document in order to receive a response XML document that I can parse for information to use within my existing servlet. This is the first time I have needed to make a remote request from another URL within an existing serlvet so I am a little lost as to what classes or strategy I should start with?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out the getConnection() method of java.net.URL.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, Jakarta Commons HttpClient if you don't mind 3rd-party tools.
 
scott kuenzli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! I'll check out the jakarta project.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!