Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 49572 invoked from network); 15 Dec 2003 19:25:28 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Dec 2003 19:25:28 -0000 Received: (qmail 94985 invoked by uid 500); 15 Dec 2003 19:25:13 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 94935 invoked by uid 500); 15 Dec 2003 19:25:12 -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 94863 invoked from network); 15 Dec 2003 19:25:12 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 15 Dec 2003 19:25:12 -0000 Received: (qmail 49500 invoked by uid 1144); 15 Dec 2003 19:25:20 -0000 Date: 15 Dec 2003 19:25:20 -0000 Message-ID: <20031215192520.49499.qmail@minotaur.apache.org> From: gdaniels@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/java/test/wsdl/types/comprehensive_service TypeTestServiceTestCase.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N gdaniels 2003/12/15 11:25:20 Modified: java/src/org/apache/axis/wsdl/fromJava Emitter.java java/test/wsdl/types ComprehensiveTypes.wsdl VerifyTestCase.java java/test/wsdl/types/comprehensive_service TypeTestServiceTestCase.java Log: Fix type test WSDL by removing the "doc/lit"isms. Can't use part element="" in an RPC service. We should be throwing errors on this stuff. Fix autogenerated WSDL by skipping anonymous types when writing "extra" types. They will be written underneath the appropriate element declaration, and trying to do them here causes errors (no context). Revision Changes Path 1.108 +6 -0 ws-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java Index: Emitter.java =================================================================== RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v retrieving revision 1.107 retrieving revision 1.108 diff -u -r1.107 -r1.108 --- Emitter.java 24 Nov 2003 20:54:47 -0000 1.107 +++ Emitter.java 15 Dec 2003 19:25:20 -0000 1.108 @@ -63,6 +63,7 @@ import org.apache.axis.Constants; import org.apache.axis.InternalException; import org.apache.axis.Version; +import org.apache.axis.wsdl.symbolTable.SymbolTable; import org.apache.axis.description.FaultDesc; import org.apache.axis.description.OperationDesc; import org.apache.axis.description.ParameterDesc; @@ -791,6 +792,11 @@ for (int i = 0; i < mappedTypes.length; i++) { Class mappedType = mappedTypes[i]; QName name = tm.getTypeQName(mappedType); + if (name.getLocalPart().indexOf(SymbolTable.ANON_TOKEN) != -1) { + // If this is an anonymous type, it doesn't need to be written out here + // (and trying to do so will generate an error). Skip it. + continue; + } /** * If it's a non-standard type, make sure it shows up in 1.49 +0 -134 ws-axis/java/test/wsdl/types/ComprehensiveTypes.wsdl Index: ComprehensiveTypes.wsdl =================================================================== RCS file: /home/cvs/ws-axis/java/test/wsdl/types/ComprehensiveTypes.wsdl,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- ComprehensiveTypes.wsdl 17 Nov 2003 15:14:02 -0000 1.48 +++ ComprehensiveTypes.wsdl 15 Dec 2003 19:25:20 -0000 1.49 @@ -96,60 +96,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -857,10 +803,6 @@ - - - - @@ -1007,22 +949,6 @@ - - - - - - - - - - - - - - - - @@ -1672,66 +1598,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -