Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 53092 invoked from network); 24 Jun 2009 19:42:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 19:42:42 -0000 Received: (qmail 19278 invoked by uid 500); 24 Jun 2009 19:42:52 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 19226 invoked by uid 500); 24 Jun 2009 19:42:52 -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 19216 invoked by uid 99); 24 Jun 2009 19:42:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 19:42:52 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.40.44.106] (HELO smtprelay.hostedemail.com) (216.40.44.106) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 19:42:41 +0000 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay02.hostedemail.com (Postfix) with SMTP id A8B6E1985A30 for ; Wed, 24 Jun 2009 19:42:19 +0000 (UTC) X-Spam-Summary: 50,0,0,499a88d31f0bb93b,d41d8cd98f00b204,dkulp@apache.org,users@cxf.apache.org:rjoshi31@gmail.com,RULES_HIT:355:379:599:601:967:973:988:989:1260:1277:1311:1312:1313:1314:1345:1359:1437:1515:1516:1518:1519:1534:1541:1593:1594:1595:1596:1711:1730:1747:1766:1792:2379:2393:2525:2553:2560:2563:2682:2685:2828:2857:2859:2900:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3353:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6117:6119:6261:7679:7858:7903:8660:8957:8985:9025:9040:9388:10004,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fu,MSBL:none,DNSBL:none,Custom_rules:0:0:0 X-Session-Marker: 64616E406B756C702E636F6D X-Filterd-Recvd-Size: 3026 Received: from server.dankulp.com (server1.dankulp.com [66.207.172.168]) (Authenticated sender: dan@kulp.com) by omf03.hostedemail.com (Postfix) with ESMTP for ; Wed, 24 Jun 2009 19:42:19 +0000 (UTC) Received: by server.dankulp.com (Postfix, from userid 5000) id 09BDA50707A3; Wed, 24 Jun 2009 15:42:19 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.1-gr1 (2007-05-02) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.e0Hm0yl2YL Received: from dilbert.localnet (host-131-239-31-200.customer.veroxity.net [131.239.31.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 3CDCF50707A0; Wed, 24 Jun 2009 15:42:17 -0400 (EDT) From: Daniel Kulp To: users@cxf.apache.org Subject: Re: Need help in discovery of a certain class in wsdl Date: Wed, 24 Jun 2009 15:42:08 -0400 User-Agent: KMail/1.11.4 (Linux/2.6.30-gentoo-r1; KDE/4.2.4; x86_64; ; ) Cc: Rahul Joshi References: <7254f76c0906231346n26faf640i4fdc42395bdfc208@mail.gmail.com> In-Reply-To: <7254f76c0906231346n26faf640i4fdc42395bdfc208@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906241542.08729.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=unavailable version=3.2.1-gr1 Add an @XmlSeeAlso annotation to point to all the subclasses. You can stick that on the SEI interface or onto the "ParentResult" class or similar. Basically, that allows JAXB to find all the usable subclasses. Dan On Tue June 23 2009 4:46:48 pm Rahul Joshi wrote: > Hi all, > > I've just started with CXF to integrate & deploy my existing pojo > application as a webservice. I am using JAX-WS annotation style to > accomplish this. > All is running well, the service gets published and I can call it > sucessfully using the stubs I generate from wsdl. The problem is that one > of my essential (return) class is not getting discovered. > The struct is like this: > > *@WebService(endpointInterface = "com.abcd.handler.Login", serviceName = > "LoginService")* > Class LoginImpl implements Login > { > public *ParentResult* execute(int request) > { > .... > .... > > return new *SomeChildResult*(String response); > } > } > > In the wsdl for above, as expected, SomeChildResult class (*it extends > ParentResult*) is not being discovered and when I used WSDL2Java parser > this is missed out. Which of course leads to a client side exception when > it tries to convert child object to ParentResult. > Is there some extra notation or any other way to use this case? > > Thanks! > > PS: Its a requirement that all my methods be returning objects derived from > ParentResult. -- Daniel Kulp dkulp@apache.org http://www.dankulp.com/blog