axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (Updated) (JIRA)" <>
Subject [jira] [Updated] (AXIS2-5281) HTTP 2xx responses other than 200 and 202 are treated as errors
Date Wed, 11 Apr 2012 14:51:17 GMT


Sagara Gunathunga  updated AXIS2-5281:

    Affects Version/s:     (was: 1.7.0)
> HTTP 2xx responses other than 200 and 202 are treated as errors
> ---------------------------------------------------------------
>                 Key: AXIS2-5281
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.6.1
>            Reporter: Gregory Moyer
>              Labels: http, patch
>             Fix For: 1.7.0
>         Attachments: process-all-2xx-http-status-codes.patch
> According to SOAP specs v1.1 Section 6.2(
and v1.2 Part 2 Section,
all 2xx HTTP status codes are successful responses. 
> In the case of SOAP v1.2, the spec even goes so far as to state "The SOAP HTTP binding
follows the rules of any HTTP application which means that an implementation of the SOAP HTTP
binding must understand the class of any status code, as indicated by the first digit, and
treat any unrecognized response as being equivalent to the x00 status code of that class,
with the exception that an unrecognized response must not be cached."
> Given that, an HTTP status code of 201 (Created) in response to a SOAP request currently
throws an error. The 201 is just an example, as any 2xx status code other than 200 and 202
will also throw an error. The problem is in org.apache.axis2.transport.http.HTTPSender.handleResponse(MessageContext,
HttpMethodBase) where all status codes that are not explicitly handled are treated as an error.
After reading the spec, it looks like those unhandled 2xx status codes should be handled the
same as 200. Therefore, I am attaching a patch that treats all 2xx status codes other than
202 as a 200 response.
> Revised handling should probably be considered for other status code classes/families
as well. However, since those are error conditions anyway, they will probably have a much
lesser impact.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message