You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/04/18 16:32:06 UTC
svn commit: r530035 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/dispatch/BaseDispatch.java
Author: dims
Date: Wed Apr 18 07:32:06 2007
New Revision: 530035
URL: http://svn.apache.org/viewvc?view=rev&rev=530035
Log:
get the actual message and use that
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/dispatch/BaseDispatch.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/dispatch/BaseDispatch.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/dispatch/BaseDispatch.java?view=diff&rev=530035&r1=530034&r2=530035
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/dispatch/BaseDispatch.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/dispatch/BaseDispatch.java Wed Apr 18 07:32:06 2007
@@ -21,6 +21,7 @@
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.jaxws.BindingProvider;
import org.apache.axis2.jaxws.ExceptionFactory;
+import org.apache.axis2.jaxws.i18n.Messages;
import org.apache.axis2.jaxws.client.async.AsyncResponse;
import org.apache.axis2.jaxws.core.InvocationContext;
import org.apache.axis2.jaxws.core.InvocationContextFactory;
@@ -112,7 +113,7 @@
if (isValidInvocationParam(obj)) {
requestMsg = createMessageFromValue(obj);
} else {
- throw ExceptionFactory.makeWebServiceException("dispatchInvalidParam");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchInvalidParam"));
}
setupMessageProperties(requestMsg);
@@ -183,7 +184,7 @@
if (isValidInvocationParam(obj)) {
requestMsg = createMessageFromValue(obj);
} else {
- throw ExceptionFactory.makeWebServiceException("dispatchInvalidParam");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchInvalidParam"));
}
setupMessageProperties(requestMsg);
@@ -237,7 +238,7 @@
if (isValidInvocationParam(obj)) {
requestMsg = createMessageFromValue(obj);
} else {
- throw ExceptionFactory.makeWebServiceException("dispatchInvalidParam");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchInvalidParam"));
}
setupMessageProperties(requestMsg);
@@ -302,7 +303,7 @@
if (isValidInvocationParam(obj)) {
requestMsg = createMessageFromValue(obj);
} else {
- throw ExceptionFactory.makeWebServiceException("dispatchInvalidParam");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchInvalidParam"));
}
setupMessageProperties(requestMsg);
@@ -435,20 +436,20 @@
// but only in PAYLOAD mode per JAX-WS Section 4.3.2.
if (!bindingId.equals(HTTPBinding.HTTP_BINDING)) {
if (mode.equals(Mode.MESSAGE) && object == null) {
- throw ExceptionFactory.makeWebServiceException("dispatchNullParamMessageMode");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchNullParamMessageMode"));
}
} else {
// In all cases (PAYLOAD and MESSAGE) we must throw a WebServiceException
// if the parameter is null.
if (object == null) {
- throw ExceptionFactory.makeWebServiceException("dispatchNullParamHttpBinding");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchNullParamHttpBinding"));
}
}
if (object instanceof DOMSource) {
DOMSource ds = (DOMSource)object;
if (ds.getNode() == null && ds.getSystemId() == null) {
- throw ExceptionFactory.makeWebServiceException("dispatchBadDOMSource");
+ throw ExceptionFactory.makeWebServiceException(Messages.getMessage("dispatchBadDOMSource"));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org