Author: eranga Date: Fri Apr 1 13:25:48 2011 New Revision: 1087700 URL: http://svn.apache.org/viewvc?rev=1087700&view=rev Log: Use an empty sequence when there are no parameters in the CORBA operation.
Modified: axis/axis2/java/core/trunk/modules/corba/src/org/apache/axis2/corba/deployer/SchemaGenerator.java Modified: axis/axis2/java/core/trunk/modules/corba/src/org/apache/axis2/corba/deployer/SchemaGenerator.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/corba/src/org/apache/axis2/corba/deployer/SchemaGenerator.java?rev=1087700&r1=1087699&r2=1087700&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/corba/src/org/apache/axis2/corba/deployer/SchemaGenerator.java (original) +++ axis/axis2/java/core/trunk/modules/corba/src/org/apache/axis2/corba/deployer/SchemaGenerator.java Fri Apr 1 13:25:48 2011 @@ -203,13 +203,11 @@ public class SchemaGenerator implements } uniqueMethods.put(operationName, operation); //create the schema type for the method wrapper - List paras = operation.getParams(); - if (paras != null && paras.size() > 0) { - sequence = new XmlSchemaSequence(); - methodSchemaType = createSchemaTypeForMethodPart(operationName); - methodSchemaType.setParticle(sequence); - } + sequence = new XmlSchemaSequence(); + methodSchemaType = createSchemaTypeForMethodPart(operationName); + methodSchemaType.setParticle(sequence); + List paras = operation.getParams(); List outparas = null; if (paras != null) { for (int j = 0; j < paras.size(); j++) {