• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML writing and reading to an URl  RSS feed

 
Ajith George
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was trying to submit xml data to a url. and try to read the same using stream reader. But as i read the server is returning internal server error. i am attaching the code here.



Please help me out.
Thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since it's the server that's crashing, it's the server that has the problem -- at least in its error handling, if not more.

But you can might start by flushing and closing the PrintWriter before trying to read the response!
 
Ajith George
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i flushed and closed the print writer ......but the result same. Is there any other way to read the response. Am i doing it right?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!