On Monday, July 23, 2012 03:22:02 PM Deshpande, Amol wrote:
> Hi,
>
> I am working on a CXF client for a one way JAX-RPC webservice.
> I am testing a scenario where, the webservice is unavailable (The
> application for the webservice on the server is stopped)
>
> In this case, the server sends back a response Internal server error
> (Response code 500)
>
> This response code is not handled by the
> httpConduit.handleResponseInternal() function because it does not throw
> an error for response code 500.
It's likely an bug on the server side. I SHOULD likely send a 404 in this
case, not a 500.
Dan
> if (responseCode == HttpURLConnection.HTTP_NOT_FOUND &&
> !MessageUtils.isTrue(outMessage.getContextualProperty(
> "org.apache.cxf.http.no_io_exceptions"))) { throw new IOException("HTTP
> response '" + responseCode + ": " + connection.getResponseMessage() +
> "'"); }
>
> Can you please let me know if this is a known issue or if there is a
> workaround to handle this?
>
>
> Thanks,
> Amol
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com