Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 2646 invoked from network); 14 Mar 2010 02:34:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Mar 2010 02:34:01 -0000 Received: (qmail 85408 invoked by uid 500); 14 Mar 2010 02:33:19 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 85265 invoked by uid 500); 14 Mar 2010 02:33:19 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 85257 invoked by uid 99); 14 Mar 2010 02:33:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Mar 2010 02:33:18 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.207.171.113] (HELO server.dankulp.com) (66.207.171.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Mar 2010 02:33:14 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 2C045207950F; Sat, 13 Mar 2010 21:32:53 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.1-gr2 (2007-05-02) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.kxamZRKryC Received: from dilbert.localnet (c-24-91-141-225.hsd1.ma.comcast.net [24.91.141.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id DB4552078498; Sat, 13 Mar 2010 21:32:50 -0500 (EST) From: Daniel Kulp To: users@cxf.apache.org Subject: Re: Problem with wsdl2java codegen tool & jaxb episodes Date: Sat, 13 Mar 2010 21:33:12 -0500 User-Agent: KMail/1.13.1 (Linux/2.6.33-gentoo; KDE/4.4.1; x86_64; ; ) Cc: Marcel Casado References: <27883012.post@talk.nabble.com> <201003121629.03785.dkulp@apache.org> <27884131.post@talk.nabble.com> In-Reply-To: <27884131.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003132133.12201.dkulp@apache.org> X-Old-Spam-Status: No, score=-3.5 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=unavailable version=3.2.1-gr2 On Friday 12 March 2010 6:43:16 pm Marcel Casado wrote: > I've created a Jira and attached test case : > https://issues.apache.org/jira/browse/CXF-2712 OK. I can now see what is going on. It's technically a "bug" (or missing API) in JAXB. See: https://jaxb.dev.java.net/issues/show_bug.cgi?id=514 Basically, for code generation, we need to know the class names that JAXB determined for the various wrappers and parameters. We call a method on the JAXB model passing the QName in and get a special object back with the classname in it. However, JAXB only passes back stuff it actually generated. In the case of episodes, it didn't generate anything. Thus, null is returned and we cannot proceed. Ideally, JAXB would return a proper object for us so we can get the information. I think this is why I've seen mixed results with episode files and CXF. The use cases I've seen before use episodes for their domain schemas, but not for the "wrapper" schemas used for the wsdl/soap interactions. For example, a "PurchaseOrder" object would be in the episode, but the "submitPO" and "submitPOResponse" schemas would be in the wsdl (which would import the domain schema). That use case WOULD work fine. JAXB would generate the SubmitPO object so null would not be returned. Without that fix in JAXB, I'm not sure what options we have. The ONLY thing I can think of is to parse and process the episode files ourselves and if jaxb returns null, start searching through them to see if a type is mapped or not. Quite a bit fragile. Dan > Thanks, > > -Marcel > > dkulp wrote: > > I've heard of mixed reports of people using episode files. Some have > > claimed > > it worked fine. Others have had issues. The main problem I have is > > that > > no-one that has had problems have been able to provide a test case that > > we can > > debug. If you could create a test case and attach to a JIRA, that would > > be a > > big help in getting any issues fixed. > > > > Dan -- Daniel Kulp dkulp@apache.org http://dankulp.com/blog