geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r164868 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
Date Tue, 26 Apr 2005 20:13:39 GMT
Author: djencks
Date: Tue Apr 26 13:13:38 2005
New Revision: 164868

URL: http://svn.apache.org/viewcvs?rev=164868&view=rev
Log:
deal with unmapped void return

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java?rev=164868&r1=164867&r2=164868&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
Tue Apr 26 13:13:38 2005
@@ -35,6 +35,7 @@
 import javax.wsdl.Fault;
 import javax.wsdl.Message;
 import javax.wsdl.Part;
+import javax.wsdl.OperationType;
 import javax.wsdl.extensions.soap.SOAPBody;
 import javax.xml.namespace.QName;
 
@@ -44,6 +45,7 @@
 import org.apache.axis.description.OperationDesc;
 import org.apache.axis.description.ParameterDesc;
 import org.apache.axis.soap.SOAPConstants;
+import org.apache.axis.encoding.XMLType;
 import org.apache.geronimo.axis.client.OperationInfo;
 import org.apache.geronimo.common.DeploymentException;
 import org.apache.geronimo.kernel.ClassLoading;
@@ -263,6 +265,12 @@
         // MAP RETURN TYPE
         if (methodMapping.isSetWsdlReturnValueMapping()) {
             mapReturnType();
+        } else if (operation.getStyle() == OperationType.REQUEST_RESPONSE) {
+            //TODO WARNING THIS APPEARS TO SUBVERT THE COMMENT IN j2ee_jaxrpc_mapping_1_1.xsd
IN service-endpoint-method-mappingType:
+            //The wsdl-return-value-mapping is not specified for one-way operations.
+            operationDesc.setReturnQName(null);             //??
+            operationDesc.setReturnType(XMLType.AXIS_VOID);
+            operationDesc.setReturnClass(void.class);
         }
 
         if (null != output && wrappedStyle) {



Mime
View raw message