[
https://issues.apache.org/jira/browse/AXIS2-3529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amila Chinthaka Suriarachchi updated AXIS2-3529:
------------------------------------------------
Attachment: patch.txt
Response written has a meaning only at the server side. if there is an epr then
that means the request for this
response has come with a addressing reply to and hence an asynchronous
invocation. in this case server has to send 202
Accepted for the orginal request. But if we set response has written it send
200 ok.
At the Axis2Servlet it checks whether the Response is written and if not set
the http status as accepted.
if (!TransportUtils.isResponseWritten(msgContext)
&& (((RequestResponseTransport)
msgContext.getProperty(
RequestResponseTransport.TRANSPORT_CONTROL)).
getStatus() !=
RequestResponseTransport.
RequestResponseTransportStatus.SIGNALLED)) {
response.setStatus(HttpServletResponse.SC_ACCEPTED);
}
> Axis2 server responds with Http 200 instead of 202 for the request of a dual
> channel invocation
> -----------------------------------------------------------------------------------------------
>
> Key: AXIS2-3529
> URL: https://issues.apache.org/jira/browse/AXIS2-3529
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: nightly
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Assignee: Deepal Jayasinghe
> Priority: Blocker
> Fix For: 1.4.1, 1.4
>
> Attachments: patch.txt
>
>
> In the dual channel service invocation, Axis2 server is expected to respond
> to the request message with http 202. This was working correctly in
> Axis2-1.3. However, server responds with 200 OK for the request in the latest
> nightly builds.
> Steps to reproduce:
> ================
> 1. Deploy a service in Axis2 server
> 2. Write an dual channel async client
> 3. Invoke the service and monitor the message flow using tcpmon
> When you send the request, you will get http 200 as the response code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]