Skip to content

Commit 49fb1ac

Browse files
Axis2 client parses soap envolope in case of a http-404
1 parent 1a3f89d commit 49fb1ac

File tree

1 file changed

+4
-0
lines changed
  • modules/transport/http/src/main/java/org/apache/axis2/transport/http

1 file changed

+4
-0
lines changed

modules/transport/http/src/main/java/org/apache/axis2/transport/http/HTTPSender.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ public void send(MessageContext msgContext, URL url, String soapActionString)
209209
|| statusCode == HttpStatus.SC_BAD_REQUEST || statusCode == HttpStatus.SC_NOT_FOUND) {
210210
processResponse = true;
211211
fault = true;
212+
} else if (statusCode == HttpStatus.SC_NOT_FOUND) {
213+
System.out.println("HTTPSender, HttpStatus.SC_NOT_FOUND");
214+
processResponse = false;
215+
fault = true;
212216
} else {
213217
throw new AxisFault(Messages.getMessage("transportError", String.valueOf(statusCode),
214218
request.getStatusText()));

0 commit comments

Comments
 (0)