Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding HTTP SC field being ignored by the Axis2 Engine... #2387

Closed
pats-john opened this issue Jul 4, 2018 · 1 comment
Closed

Overriding HTTP SC field being ignored by the Axis2 Engine... #2387

pats-john opened this issue Jul 4, 2018 · 1 comment

Comments

@pats-john
Copy link

Description: Cant Change the HTTP Status code as it is being ignored by the Apache Axis Engine

Suggested Labels: WSO2 E.I, WSO2 ESB

Suggested Assignees:

Affected Product Version: WSO2 E.I 6.2

OS, DB, other environment details and versions:

**Steps to reproduce:HTTP_SC not being set on the Outbound of the Api Pipeline **
<api xmlns="http://ws.apache.org/ns/synapse" name="Test" context="TestService/api/1.0" hostname="localhost" port="8280"> <resource methods="POST" protocol="http"> <inSequence> <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" type="STRING"/> <property name="OUT_ONLY" value="true" scope="default" type="STRING"/> <property name="SC_ACCEPTED" value="false" scope="axis2"/> <log level="custom" separator="," description="Input Message"> <property name="Payload" expression="$."/> <property name="messageID" expression="json-eval($.messageid)"/> </log> <payloadFactory media-type="xml" description="Building the XML Payload"> <format/> <args/> </payloadFactory> <property name="messageType" value="application/xml;charset=UTF-8" scope="axis2" type="STRING"/> <log level="full" description="Input Message"/> <header name="To" action="remove"/> <property name="RESPONSE" value="true" scope="default" type="STRING"/> <property name="SC_ACCEPTED" value="false" scope="axis2"/> <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/> <property name="HTTP_SC" value="200" scope="axis2"/> </inSequence> <outSequence> <property name="HTTP_SC" value="200" scope="axis2" type="STRING"/> <property name="RESPONSE" value="true"/> <header name="To" action="remove"/> <property name="messageType" value="application/json" scope="axis2"/> <send/> </outSequence> <faultSequence/> </resource> </api>

Related Issues:

@keerthu
Copy link
Contributor

keerthu commented Mar 14, 2019

This is fixed in wso2/wso2-synapse#466.

@keerthu keerthu closed this as completed Mar 14, 2019
@Nirothipan Nirothipan added this to the EI 6.5.0-M3 milestone Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants