You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/10/13 21:36:38 UTC

cvs commit: xml-axis/java/samples/client DynamicInvoker.java

dims        2002/10/13 12:36:38

  Modified:    java/samples/client DynamicInvoker.java
  Log:
  - Allow more than one port in wsdl....Pick the first one.
  - Improve error message. (Don't typecast to QName as Map can have strings as keys as well)
  
  Revision  Changes    Path
  1.2       +2 -6      xml-axis/java/samples/client/DynamicInvoker.java
  
  Index: DynamicInvoker.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/client/DynamicInvoker.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DynamicInvoker.java	13 Oct 2002 15:35:58 -0000	1.1
  +++ DynamicInvoker.java	13 Oct 2002 19:36:38 -0000	1.2
  @@ -410,7 +410,7 @@
           } else {
               int size = items.size();
   
  -            if (size == 1) {
  +            if (size >= 1) {
                   Iterator valueIterator = items.values().iterator();
   
                   Object o = valueIterator.next();
  @@ -435,14 +435,10 @@
           int index = 0;
   
           while (keyIterator.hasNext()) {
  -            QName key = (QName) keyIterator.next();
  -
  -            strBuf.append((index > 0 ? ", " : "") + key);
  +            strBuf.append((index > 0 ? ", " : "") + keyIterator.next());
               index++;
           }
  -
           strBuf.append("}");
  -
           return strBuf.toString();
       }