You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by sc...@apache.org on 2010/10/11 20:59:53 UTC

svn commit: r1021462 - /axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java

Author: scheu
Date: Mon Oct 11 18:59:52 2010
New Revision: 1021462

URL: http://svn.apache.org/viewvc?rev=1021462&view=rev
Log:
AXIS2-4848
Contributor:Rich Scheuerle
Get the packages of DocLitWrapped parameters.

Modified:
    axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java

Modified: axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java?rev=1021462&r1=1021461&r2=1021462&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java (original)
+++ axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java Mon Oct 11 18:59:52 2010
@@ -350,19 +350,13 @@ public class PackageSetBuilder {
         }
 
         
-        // In most doc/literal cases, the @RequestWrapper or @ResponseWrapper classes are successfully found.
-        // The wrapper classes contain the representation of the parameters, thus the parameters don't need
-        // to be separately processed.
-        // However if the @RequestWrapper or @ResponseWrappers are not found, then the parameters must be examined.
-        if (requestWrapperPkg == null || responseWrapperPkg == null) {
-            if (log.isDebugEnabled()) {
-                log.debug("Collect the packages of the parameters");
-            }
-            addPackagesFromParameters(set, opDesc);
-            if (m != null) {
-                addPackagesFromParameters(set, m);
-            }
-     
+        // Examine the parameters
+        if (log.isDebugEnabled()) {
+            log.debug("Collect the packages of the parameters");
+        }
+        addPackagesFromParameters(set, opDesc) ; 
+        if (m != null) {
+            addPackagesFromParameters(set, m);
         }
 
         // Finally consider the result type