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 49fb1ac419 Axis2 client parses soap envolope in case of a http-404
49fb1ac419 is described below
commit 49fb1ac419a2e07ff1e75c4bf88a4ab1feb46b72
Author: Robert Lazarski
AuthorDate: Fri Feb 28 06:12:41 2025 -1000
Axis2 client parses soap envolope in case of a http-404
---
.../src/main/java/org/apache/axis2/transport/http/HTTPSender.java | 4
1 file changed, 4 insertions(+)
diff --git
a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/HTTPSender.java
b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/HTTPSender.java
index b1e9c28a76..480697bde4 100644
---
a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/HTTPSender.java
+++
b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/HTTPSender.java
@@ -209,6 +209,10 @@ public abstract class HTTPSender {
|| statusCode == HttpStatus.SC_BAD_REQUEST ||
statusCode == HttpStatus.SC_NOT_FOUND) {
processResponse = true;
fault = true;
+} else if (statusCode == HttpStatus.SC_NOT_FOUND) {
+ System.out.println("HTTPSender, HttpStatus.SC_NOT_FOUND");
+processResponse = false;
+fault = true;
} else {
throw new AxisFault(Messages.getMessage("transportError",
String.valueOf(statusCode),
request.getStatusText()));