axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http CommonsHTTPSender.java
Date Fri, 15 Oct 2004 16:01:07 GMT
dims        2004/10/15 09:01:07

  Modified:    java/src/org/apache/axis/transport/http
                        CommonsHTTPSender.java
  Log:
  Fix for AXIS-1611 - CommonsHTTPSender does not add HTTP error code to fault details
  from Robert H. Pollack (robert_h_pollack@yahoo.com)
  
  Revision  Changes    Path
  1.26      +4 -1      ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
  
  Index: CommonsHTTPSender.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- CommonsHTTPSender.java	19 Jun 2004 21:11:26 -0000	1.25
  +++ CommonsHTTPSender.java	15 Oct 2004 16:01:05 -0000	1.26
  @@ -18,6 +18,7 @@
   import org.apache.axis.AxisFault;
   import org.apache.axis.Message;
   import org.apache.axis.MessageContext;
  +import org.apache.axis.Constants;
   import org.apache.axis.components.logger.LogFactory;
   import org.apache.axis.components.net.CommonsHTTPClientProperties;
   import org.apache.axis.components.net.CommonsHTTPClientPropertiesFactory;
  @@ -201,7 +202,9 @@
                   
                   try {
                       fault.setFaultDetailString(Messages.getMessage("return01",
  -                    "" + returnCode, method.getResponseBodyAsString()));
  +                            "" + returnCode, method.getResponseBodyAsString()));
  +                    fault.addFaultDetail(Constants.QNAME_FAULTDETAIL_HTTPERRORCODE,
  +                            Integer.toString(returnCode));
                       throw fault;
                   } finally {
                       method.releaseConnection(); // release connection back to pool.
  
  
  

Mime
View raw message