You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2003/10/21 16:30:00 UTC

cvs commit: ws-axis/java/src/org/apache/axis/transport/http SimpleAxisWorker.java

gdaniels    2003/10/21 07:30:00

  Modified:    java/src/org/apache/axis/transport/http
                        SimpleAxisWorker.java
  Log:
  Per Dug's comment, send back a 202 if no content, not a 200.
  
  Revision  Changes    Path
  1.27      +5 -0      ws-axis/java/src/org/apache/axis/transport/http/SimpleAxisWorker.java
  
  Index: SimpleAxisWorker.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/SimpleAxisWorker.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- SimpleAxisWorker.java	21 Oct 2003 03:09:22 -0000	1.26
  +++ SimpleAxisWorker.java	21 Oct 2003 14:29:59 -0000	1.27
  @@ -93,6 +93,7 @@
   
       // HTTP status codes
       private static byte OK[] = ("200 " + Messages.getMessage("ok00")).getBytes();
  +    private static byte NOCONTENT[] = ("202" + Messages.getMessage("ok00")).getBytes();
       private static byte UNAUTH[] = ("401 " + Messages.getMessage("unauth00")).getBytes();
       private static byte SENDER[] = "400".getBytes();
       private static byte ISE[] = ("500 " + Messages.getMessage("internalError01")).getBytes();
  @@ -436,6 +437,10 @@
   
                   // Retrieve the response from Axis
                   responseMsg = msgContext.getResponseMessage();
  +                
  +                if (responseMsg == null) {
  +                    status = NOCONTENT;
  +                }
               } catch (Exception e) {
                   AxisFault af;
                   if (e instanceof AxisFault) {