geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: r164972 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
Date Wed, 27 Apr 2005 11:54:23 GMT
Author: gdamour
Date: Wed Apr 27 04:54:22 2005
New Revision: 164972

URL: http://svn.apache.org/viewcvs?rev=164972&view=rev
Log:
Temporary fix to allow for document/literal wrapped.

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

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java?rev=164972&r1=164971&r2=164972&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
Wed Apr 27 04:54:22 2005
@@ -45,6 +45,7 @@
 import org.apache.axis.constants.Style;
 import org.apache.axis.constants.Use;
 import org.apache.axis.description.JavaServiceDesc;
+import org.apache.axis.description.OperationDesc;
 import org.apache.axis.encoding.TypeMapping;
 import org.apache.axis.encoding.TypeMappingRegistryImpl;
 import org.apache.geronimo.axis.client.TypeInfo;
@@ -204,7 +205,14 @@
                 wrappedElementQNames.addAll(wrappedElementQNamesForOper);
             }
 
-            serviceDesc.addOperationDesc(operationDescBuilder.buildOperationDesc());
+            // TODO fix Axis: a JavaServiceDesc can be document or rpc and
+            // still define a WSDL operation using a wrapper style mapping.
+            // when fixed, the three following lines should be removed.
+            OperationDesc operationDesc =  operationDescBuilder.buildOperationDesc();
+            if (Style.WRAPPED == operationDesc.getStyle()) {
+                serviceDesc.setStyle(Style.WRAPPED);
+            }
+            serviceDesc.addOperationDesc(operationDesc);
         }
 
         return wrappedElementQNames;



Mime
View raw message