Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 34445 invoked from network); 6 Aug 2004 15:44:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Aug 2004 15:44:43 -0000 Received: (qmail 2464 invoked by uid 500); 6 Aug 2004 15:44:05 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 2361 invoked by uid 500); 6 Aug 2004 15:44:04 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 2305 invoked by uid 99); 6 Aug 2004 15:44:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 06 Aug 2004 08:44:02 -0700 Received: (qmail 8616 invoked from network); 6 Aug 2004 15:45:33 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 6 Aug 2004 15:45:33 -0000 Message-ID: <1791353423.1091807133939.JavaMail.apache@nagoya> Date: Fri, 6 Aug 2004 08:45:33 -0700 (PDT) From: axis-dev@ws.apache.org To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS-1495) WSDL2Java Anonymous Types cause problems for fromJava Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXIS-1495 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXIS-1495 Summary: WSDL2Java Anonymous Types cause problems for fromJava Type: Bug Status: Unassigned Priority: Major Project: Axis Components: WSDL processing Versions: 1.1 1.2 Beta Assignee: Reporter: Tom Crossland Created: Fri, 6 Aug 2004 8:44 AM Updated: Fri, 6 Aug 2004 8:44 AM Environment: Any J2EE Server Description: Error Summary: Anonymous types are named in the SymbolTable with the ANON_TOKEN prefix (">"). This causes a problem for the makeTypeElement method invoked by writeType. Initial Diagnostic: There seems to be a contradiction here, makeTypeElement doesn't allow anonymous types outside of a containing element, whereas writeType invokes makeTypeElement specifying "null" as the containing element. makeTypeElement code snippet: // Can't have an anonymous type outside of a containing element if (anonymous && (containingElement == null)) { throw new AxisFault(Messages.getMessage( "noContainerForAnonymousType", qName.toString())); } writeType code snippet: if (!makeTypeElement(type, qName, null)) { return null; } How to reproduce the error: Use WSDL2Java to create client and server-side bindings (with skeleton) from the attached files. Compile the javas and deploy the jar to your application server (JBoss in my case). Deploy the Web Service using the deploy.wsdd Try to obtain the WSDL from the deployed service. The following error results: Fault - makeTypeElement() was told to create a type "{urn:anontype}>AnonRequest", with no containing element AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: makeTypeElement() was told to create a type "{urn:anontype}>AnonRequest", with no containing element faultActor: faultNode: faultDetail: Workaround: Make sure types are named (note that this is not always a possible solution, for example for third-party WSDLs, hence Priority=Major). See Related Issues: http://nagoya.apache.org/jira/browse/AXIS-1453 http://nagoya.apache.org/jira/browse/AXIS-1431 http://nagoya.apache.org/jira/browse/AXIS-1295 http://nagoya.apache.org/jira/browse/AXIS-1284 http://nagoya.apache.org/jira/browse/AXIS-1277 --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira