Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 42166 invoked from network); 4 Oct 2004 23:22:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Oct 2004 23:22:16 -0000 Received: (qmail 61693 invoked by uid 500); 4 Oct 2004 23:22:13 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 61647 invoked by uid 500); 4 Oct 2004 23:22:13 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 61634 invoked by uid 99); 4 Oct 2004 23:22:13 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 04 Oct 2004 16:22:12 -0700 Received: (qmail 42142 invoked by uid 1370); 4 Oct 2004 23:22:11 -0000 Date: 4 Oct 2004 23:22:11 -0000 Message-ID: <20041004232211.42141.qmail@minotaur.apache.org> From: tomj@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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);