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 sc...@apache.org on 2008/03/28 03:58:28 UTC
svn commit: r642073 [2/2] - in /webservices/axis2/trunk/java/modules:
jaxws/src/org/apache/axis2/jaxws/
jaxws/src/org/apache/axis2/jaxws/addressing/
jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/
jaxws/src/org/apache/axis2/jaxws/addressing/u...
Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/MTOMConfigurator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/MTOMConfigurator.java?rev=642073&r1=642072&r2=642073&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/MTOMConfigurator.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/MTOMConfigurator.java Thu Mar 27 19:58:15 2008
@@ -26,6 +26,7 @@
import org.apache.axis2.jaxws.description.EndpointDescription;
import org.apache.axis2.jaxws.description.EndpointDescriptionJava;
import org.apache.axis2.jaxws.feature.ServerConfigurator;
+import org.apache.axis2.jaxws.i18n.Messages;
import org.apache.axis2.jaxws.registry.ServerConfiguratorRegistry;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -52,11 +53,12 @@
//Disable MTOM
Parameter enableMTOM = new Parameter(Constants.Configuration.ENABLE_MTOM, Boolean.FALSE);
Parameter threshold = new Parameter(Constants.Configuration.MTOM_THRESHOLD, 0);
+
+ if (mtomAnnoation == null) {
+ throw ExceptionFactory.
+ makeWebServiceException(Messages.getMessage("mtomAnnotationErr"));
+ }
- //TODO NLS enable.
- if (mtomAnnoation == null)
- throw ExceptionFactory.makeWebServiceException("The MTOM annotation was unspecified.");
-
//Enable MTOM.
if (mtomAnnoation.enabled()) {
if (log.isDebugEnabled()) {
@@ -78,8 +80,8 @@
service.addParameter(threshold);
}
catch (Exception e) {
- //TODO NLS enable.
- throw ExceptionFactory.makeWebServiceException("Unable to enable MTOM.", e);
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("mtomEnableErr"),
+ e);
}
}
Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java?rev=642073&r1=642072&r2=642073&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java Thu Mar 27 19:58:15 2008
@@ -20,6 +20,7 @@
package org.apache.axis2.jaxws.util;
import org.apache.axis2.jaxws.ExceptionFactory;
+import org.apache.axis2.jaxws.i18n.Messages;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.xml.sax.InputSource;
@@ -140,12 +141,17 @@
lastestImportURI = importPath;
}
} catch (IOException ex) {
- throw ExceptionFactory.makeWebServiceException("An error occurred while attempting "
- + " to resolve the " + relativeLocation + " WSDL file: " + ex.toString());
+ throw ExceptionFactory.makeWebServiceException(
+ Messages.getMessage("WSDLRelativeErr1",
+ relativeLocation,
+ parentLocation,
+ ex.toString()));
}
if(is == null){
- throw ExceptionFactory.makeWebServiceException("The " + relativeLocation +
- " WSDL file could not be located.");
+ throw ExceptionFactory.makeWebServiceException(
+ Messages.getMessage("WSDLRelativeErr2",
+ relativeLocation,
+ parentLocation));
}
if(log.isDebugEnabled()){
log.debug("Loaded file: " + relativeLocation);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org