This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to get the body of HTTP Response if status code is 500? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

How to get the body of HTTP Response if status code is 500?

Kelly Powell
Ranch Hand

Joined: Oct 29, 2010
Posts: 56
How do you get the body of a HTTP Response if it has a status code of HTTP 500? When I receive the response below, it is automatically catch as IOException. However, I am unable to get the body attached to it. How do I get the body attached to the response without using any 3rd party API?


Note: I also posted a similar but more detailed question under the Web Service topic. I am not yet sure if this is a web service problem but based on the facts I've gathered, it seems that this problem has nothing to do with web service. Link to my post under Web Service topic: http://www.coderanch.com/t/546023/Web-Services/java/Web-Service-Client-read-fault
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Please continue any discussion in the original topic.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get the body of HTTP Response if status code is 500?
 
Similar Threads
axis2: set SC_BAD_REQUEST with AxisFault
How to integrate AXIS2 envirnoment into the current webapllication.
Web Service Client: Can't read fault instead an IOException is read.
Axis Fault - Invoking Web Services
truncated XML when axis2 service method throws an error