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

Capturing response from a post

 
Sridhar Bhuvanapalli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I make a call to http://server_address/directory/login.asp
and that returns an XML string....how would I go about making this call and capture the XML string.
 
Alexander Pantaleev
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using a filter, and a standing stream inside it. To be eligible for that, the filter and the .asp file have to be in the same context (which means that the .asp file has to be called through http://your_jsp_container/context_path/something.asp).
For information on filters and standing streams, you can check the java.sun.com tutorial on filters at http://java.sun.com/products/servlet/Filters.html
Hope that helps,
Alexander
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic