From: Anil S. <ani...@jb...> - 2005-06-17 23:27:27
|
User: asaldhana Date: 05/06/17 19:26:50 Modified: src/main/org/jboss/ws/tools/mapping MappingFileGenerator.java Log: Ignore the type for arrays. Revision Changes Path 1.10 +9 -2 webservice/src/main/org/jboss/ws/tools/mapping/MappingFileGenerator.java (In the diff below, changes in quantity of whitespace are not shown.) Index: MappingFileGenerator.java =================================================================== RCS file: /cvsroot/jboss/webservice/src/main/org/jboss/ws/tools/mapping/MappingFileGenerator.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- MappingFileGenerator.java 7 Jun 2005 13:24:17 -0000 1.9 +++ MappingFileGenerator.java 17 Jun 2005 23:26:50 -0000 1.10 @@ -183,6 +183,7 @@ if (prefix.startsWith("ns")) { String nspref = wsdlDefinitions.getNamespaceURI(prefix); + if( nspref.indexOf("/arrays") > -1) appendArrayNamespace(buf, nspref); } } @@ -212,9 +213,15 @@ { JBossXSComplexTypeDefinition jbt = (JBossXSComplexTypeDefinition)xst; String typename = xst.getName(); + //Ignore the one for arrays + if(typename != null && typename.endsWith("Array")) continue; QName xmlType = schemautils.getQName(jbt); Class javaType = typeMapping.getJavaType(xmlType); - String clname = javaType != null ? javaType.getName() : null; + String clname = null; + if(javaType != null && javaType.isArray()) + clname = javaType.getComponentType().getName(); + else + clname = javaType != null ? javaType.getName() : null; if (clname == null) continue; //TODO: Check this |