You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ro...@apache.org on 2025/03/03 12:29:15 UTC
(axis-axis2-java-core) branch master updated: AXIS2-6061 make it easier to customize the error response
This is an automated email from the ASF dual-hosted git repository.
robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push:
new ea99a3061e AXIS2-6061 make it easier to customize the error response
ea99a3061e is described below
commit ea99a3061ea8a3b3f384659664d2031351d345b3
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Mon Mar 3 02:28:35 2025 -1000
AXIS2-6061 make it easier to customize the error response
---
.../src/main/java/org/apache/axis2/transport/http/AxisServlet.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
index 16195b76fb..8bbf935339 100644
--- a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
+++ b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java
@@ -458,6 +458,10 @@ public class AxisServlet extends HttpServlet {
(HttpServletResponse) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE);
if (response != null) {
+ // AXIS2-6061 make it easier to customize the error response in the method writeTo()
+ // of the Message Formatter classes ... HTTPConstants.RESPONSE_CODE was until now unused
+ faultContext.setProperty(HTTPConstants.RESPONSE_CODE, response.getStatus());
+
//TODO : Check for SOAP 1.2!
SOAPFaultCode code = faultContext.getEnvelope().getBody().getFault().getCode();