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 bu...@apache.org on 2002/07/17 19:32:57 UTC

cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java

butek       2002/07/17 10:32:57

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
  Log:
  If we have
  
  <message name="in"><part name="in" element="e"/></message>
  <message name="out"><part name="out" element="e"/></message>
  
  where e contains a string named a.  Note that the input and output
  messages both refer to the same element.  Because the unwrapped list
  of parameters are named the same for input and output, we used to say
  we had an inout parameter and generate the following:
  
  public void e(StringHolder a);
  
  but inoutness is determined by part name, not parameter name, so we
  should generate:
  
  public String e(String a);
  
  This is a TCK issue.
  
  Revision  Changes    Path
  1.13      +6 -3      xml-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
  
  Index: SymbolTable.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- SymbolTable.java	14 Jul 2002 13:53:25 -0000	1.12
  +++ SymbolTable.java	17 Jul 2002 17:32:56 -0000	1.13
  @@ -83,12 +83,13 @@
   import javax.wsdl.Part;
   import javax.wsdl.Port;
   import javax.wsdl.PortType;
  -import javax.xml.namespace.QName;
   import javax.wsdl.Service;
   import javax.wsdl.WSDLException;
   
   import javax.wsdl.factory.WSDLFactory;
   
  +import javax.xml.namespace.QName;
  +
   import javax.wsdl.xml.WSDLReader;
   
   import javax.wsdl.extensions.http.HTTPBinding;
  @@ -1102,7 +1103,9 @@
           // At this point we know the name and type of the parameter, and that it's at least an
           // in parameter.  Now check to see whether it's also in the outputs Vector.  If it is,
           // then it's an inout parameter.
  -        if (outdex >= 0) {
  +        // Don't bother doing this if the parameters are wrapped since their
  +        // names won't be the part names.
  +        if (outdex >= 0 && !wrapped) {
               Parameter outParam = (Parameter)outputs.get(outdex);
               if (p.getType().equals(outParam.getType())) {
                   outputs.remove(outdex);
  @@ -1299,7 +1302,7 @@
                   v.add(p);
               }
           } // while
  -        
  +
       } // partStrings
   
       /**