axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http CommonsHTTPSender.java
Date Thu, 06 Mar 2003 18:21:46 GMT
dims        2003/03/06 10:21:46

  Modified:    java/src/org/apache/axis/transport/http
                        CommonsHTTPSender.java
  Log:
  WhiteMesaSoap12AddTestSvcTestCase was failing....Needed to mirror the updates we made to
HTTPSender for SOAP1.2 return codes.
  
  Revision  Changes    Path
  1.13      +5 -0      xml-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
  
  Index: CommonsHTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- CommonsHTTPSender.java	6 Mar 2003 14:48:08 -0000	1.12
  +++ CommonsHTTPSender.java	6 Mar 2003 18:21:46 -0000	1.13
  @@ -57,6 +57,7 @@
   import org.apache.axis.AxisFault;
   import org.apache.axis.Message;
   import org.apache.axis.MessageContext;
  +import org.apache.axis.soap.SOAPConstants;
   import org.apache.axis.components.logger.LogFactory;
   import org.apache.axis.components.net.TransportClientProperties;
   import org.apache.axis.components.net.TransportClientPropertiesFactory;
  @@ -164,6 +165,10 @@
               if ((returnCode > 199) && (returnCode < 300)) {
   
                   // SOAP return is OK - so fall through
  +            } else if (msgContext.getSOAPConstants() ==
  +                    SOAPConstants.SOAP12_CONSTANTS) {
  +                // For now, if we're SOAP 1.2, fall through, since the range of
  +                // valid result codes is much greater
               } else if ((contentType != null) && !contentType.equals("text/html")
                          && ((returnCode > 499) && (returnCode < 600)))
{
   
  
  
  

Mime
View raw message