ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
Date Mon, 04 Oct 2004 23:22:11 GMT
tomj        2004/10/04 16:22:11

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
  Log:
  Fix a problem with the argument names for doc/lit wrapped.
  They were being created from ">myOp>argument" and thus were named
  myOpArgument in the stubs.  The parameter name should be "argument"
  in this case, so make sure the name of the parameter doesn't include the
  anonymous inner type character.
  
  Revision  Changes    Path
  1.105     +8 -0      ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
  
  Index: SymbolTable.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- SymbolTable.java	22 Aug 2004 03:06:59 -0000	1.104
  +++ SymbolTable.java	4 Oct 2004 23:22:11 -0000	1.105
  @@ -2164,6 +2164,14 @@
                       Parameter p = new Parameter();
   
                       p.setQName(elem.getQName());
  +                    // If the parameter is a anonymous complex type, the parameter
  +                    // name should just be the name of the element, not >foo>element
  +                    String paramName = p.getName();
  +                    final int gt = paramName.lastIndexOf(ANON_TOKEN);
  +                    if (gt != 1) {
  +                        paramName = paramName.substring(gt+1);
  +                    }
  +                    p.setName(paramName);
                       p.setType(elem.getType());
                       p.setOmittable(elem.getMinOccursIs0());
                       fillParamInfo(p, bindingEntry, opName, partName);
  
  
  

Mime
View raw message