axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java
Date Sun, 30 Nov 2003 06:01:22 GMT
dims        2003/11/29 22:01:22

  Modified:    java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java
  Log:
  Fix for Bug 22555 - wsdl2java --all doesn't register all serializers
  from mchurch@www.IN.gov (Mark Church)
  
  Revision  Changes    Path
  1.122     +16 -0     ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java
  
  Index: JavaStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- JavaStubWriter.java	17 Nov 2003 15:14:03 -0000	1.121
  +++ JavaStubWriter.java	30 Nov 2003 06:01:21 -0000	1.122
  @@ -68,6 +68,7 @@
   import org.apache.axis.wsdl.symbolTable.Parameters;
   import org.apache.axis.wsdl.symbolTable.SymbolTable;
   import org.apache.axis.wsdl.symbolTable.TypeEntry;
  +import org.apache.axis.wsdl.symbolTable.DefinedType;
   
   import javax.wsdl.Binding;
   import javax.wsdl.BindingOperation;
  @@ -760,6 +761,21 @@
               }
           }
   
  + 		if(emitter.isAllWanted()) {
  + 			HashMap rawSymbolTable = symbolTable.getHashMap();
  + 			for(Iterator j = rawSymbolTable.values().iterator(); j.hasNext(); ) {
  + 				Vector typeVector = (Vector)j.next();
  + 				for(Iterator k = typeVector.iterator(); k.hasNext(); ) {
  + 					Object symbol = k.next();
  + 					if(symbol instanceof DefinedType) {
  + 						TypeEntry type = (TypeEntry)symbol;
  + 						if(!types.contains(type)) {
  + 							types.add(type);
  + 						}
  + 					}
  + 				}
  + 			}
  + 		}        
           return types;
       }    // getTypesInPortType
   
  
  
  

Mime
View raw message