cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1307130 - /cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
Date Thu, 29 Mar 2012 21:53:45 GMT
Author: dkulp
Date: Thu Mar 29 21:53:44 2012
New Revision: 1307130

URL: http://svn.apache.org/viewvc?rev=1307130&view=rev
Log:
Throw CXF specific SoapFault that the frontend can properly map.

Modified:
    cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java

Modified: cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java?rev=1307130&r1=1307129&r2=1307130&view=diff
==============================================================================
--- cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
(original)
+++ cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/MAPAggregatorImpl.java
Thu Mar 29 21:53:44 2012
@@ -33,7 +33,6 @@ import java.util.logging.Logger;
 import javax.wsdl.extensions.ExtensibilityElement;
 import javax.xml.namespace.QName;
 import javax.xml.ws.WebFault;
-import javax.xml.ws.WebServiceException;
 
 import org.apache.cxf.Bus;
 import org.apache.cxf.binding.soap.SoapBindingConstants;
@@ -534,9 +533,9 @@ public class MAPAggregatorImpl extends M
                     }
                 }
                 if (missingWsaHeader) {
-                    String reason = BUNDLE.getString("MISSING_ACTION_MESSAGE");
-                    throw new WebServiceException(reason + new QName(Names.WSA_NAMESPACE_NAME,
-                                                          Names.HEADER_REQUIRED_NAME));
+                    throw new SoapFault("MISSING_ACTION_MESSAGE", BUNDLE,
+                                        new QName(Names.WSA_NAMESPACE_NAME,
+                                                  Names.HEADER_REQUIRED_NAME));
                 }
             }
             if (MessageUtils.isPartialResponse(message) 



Mime
View raw message