How to access HTTP response status code

Frank Baldiga <[email protected]>
Newsgroups gmane.text.xml.soap.devel
Message-ID <OFD154A82E.AE113B12-ON85256DB1.0046C2B7-85256DB1.0047EB57@us.ibm.com>
I know this question has been asked before but I couldn't find an answer 
in the achives. I'm using WebSphere 5.0.1. I'm not sure what version of
SOAP it uses. My question is: how can I get access to the HTTP response 
status code in my proxy?  I checked the javadoc for the Call and 
SOAPHTTPConnection classes but there doesn't appear to be a way. A related 
issue is that for staus code 404 and 401 I get the following response back 
from WebSphere which is not very helpful -  SOAPException: 
faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type 
&quot;text/html; charset=ISO-8859-1&quot;, must be: &quot;text/xml&quot;. 
Response was:

So to know what is really going on I'd like to capture the HTTP status 
code and display a better error message in my proxy.

Thank you,
Frank Baldiga
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.