axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r433109 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2: i18n/resource.properties transport/http/SOAPOverHTTPSender.java
Date Mon, 21 Aug 2006 01:02:27 GMT
Author: dims
Date: Sun Aug 20 18:02:24 2006
New Revision: 433109

URL: http://svn.apache.org/viewvc?rev=433109&view=rev
Log:
make the http error code a bit more explicit

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/i18n/resource.properties
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/i18n/resource.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/i18n/resource.properties?rev=433109&r1=433108&r2=433109&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/i18n/resource.properties
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/i18n/resource.properties
Sun Aug 20 18:02:24 2006
@@ -46,6 +46,7 @@
 canNotBeNull={0} can not be NULL
 notFound={0} not found
 transportError=Transport error {0} . Error Message is {1}
+httpTransportError=HTTP Transport error : ''{0}'' - ''{1}''
 preatureEOS=Premature end of stream
 responseTimeOut=Time out while waiting for the server to send the response
 callBackCompletedWithError=Callback completed but there was no envelope or error

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java?rev=433109&r1=433108&r2=433109&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
Sun Aug 20 18:02:24 2006
@@ -132,7 +132,8 @@
                 }
             }
         } else {
-            throw new AxisFault("Axis2 transport error : " + postMethod.getStatusText(),
SOAP12Constants.FAULT_CODE_SENDER);
+            throw new AxisFault(Messages.getMessage("httpTransportError",
+                String.valueOf(postMethod.getStatusCode()), postMethod.getStatusText()),
SOAP12Constants.FAULT_CODE_SENDER);
         }
 
         throw new AxisFault(Messages.getMessage("transportError",



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message