axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ven...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java
Date Sun, 26 Jun 2005 11:17:25 GMT
venkat      2005/06/26 04:17:25

  Modified:    java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java
  Log:
  Patch for AXIS-1992, as suggested by Ryan. Passes ant all-tests.
  
  Revision  Changes    Path
  1.152     +6 -4      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.151
  retrieving revision 1.152
  diff -u -r1.151 -r1.152
  --- JavaStubWriter.java	13 Jun 2005 02:19:52 -0000	1.151
  +++ JavaStubWriter.java	26 Jun 2005 11:17:24 -0000	1.152
  @@ -1105,10 +1105,12 @@
               Map partsMap =
                       operation.getOperation().getInput().getMessage().getParts();
               Iterator i = partsMap.values().iterator();
  -            if(i.hasNext()) {
  -                Part p = (Part) partsMap.values().iterator().next();
  -                QName q = p.getElementName();
  -    
  +            QName q = null;
  +            while (q == null && i.hasNext()) {
  +            	Part p = (Part) i.next();
  +            	q = p.getElementName();
  +            }
  +            if(q != null) {
                   pw.println("        _call.setOperationName(" + Utils.getNewQName(q)
                           + ");");
               } else {
  
  
  

Mime
View raw message