Forums Register Login

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

+Pie Number of slices to send: Send
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: https://coderanch.com/t/546023/Web-Services/java/Web-Service-Client-read-fault
+Pie Number of slices to send: Send
Please continue any discussion in the original topic.
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 3111 times.
Similar Threads
Axis Fault - Invoking Web Services
How to integrate AXIS2 envirnoment into the current webapllication.
truncated XML when axis2 service method throws an error
axis2: set SC_BAD_REQUEST with AxisFault
data service url gives error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:04:14.