geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r527912 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java
Date Thu, 12 Apr 2007 12:54:05 GMT
Author: dims
Date: Thu Apr 12 05:54:04 2007
New Revision: 527912

URL: http://svn.apache.org/viewvc?view=rev&rev=527912
Log:
Fix for GERONIMO-2998 - Geronimo Axis2 Adding Fault Handling for WSDL Provided

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java?view=diff&rev=527912&r1=527911&r2=527912
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/AxisServiceGenerator.java
Thu Apr 12 05:54:04 2007
@@ -59,6 +59,7 @@
 import org.apache.axis2.jaxws.description.builder.MethodDescriptionComposite;
 import org.apache.axis2.jaxws.description.builder.ParameterDescriptionComposite;
 import org.apache.axis2.jaxws.description.builder.ResponseWrapperAnnot;
+import org.apache.axis2.jaxws.description.builder.WebFaultAnnot;
 import org.apache.axis2.jaxws.description.builder.WebMethodAnnot;
 import org.apache.axis2.jaxws.description.builder.WebParamAnnot;
 import org.apache.axis2.jaxws.description.builder.WebResultAnnot;
@@ -77,8 +78,6 @@
 import org.apache.ws.commons.schema.XmlSchemaType;
 
 //TODO: Handle RPC Style Messaging
-//TODO: Handle Fault Messages
-//TODO: Investigate more on JAXB Wrapper class gen default behaviour 
 
 /**
  * @version $Rev$ $Date$
@@ -296,8 +295,13 @@
         	mdc.setOneWayAnnot(true); 
         }
          
-        List faultMessages = operation.getFaultMessages(); 
-        if(faultMessages != null){//TODO Implement it 
+        List<AxisMessage> faultMessages = operation.getFaultMessages();
+        if(faultMessages != null){
+        	for(AxisMessage faultMessage: faultMessages){
+        		WebFaultAnnot faultAnnot = WebFaultAnnot.createWebFaultAnnotImpl();
+        		faultAnnot.setName(faultMessage.getName());
+        		dbc.setWebFaultAnnot(faultAnnot);
+        	}
         }
          
         mdc.setWebMethodAnnot(webMethodAnnot);



Mime
View raw message