Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 75556 invoked from network); 21 Aug 2007 15:13:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 15:13:54 -0000 Received: (qmail 63851 invoked by uid 500); 21 Aug 2007 15:13:50 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 63816 invoked by uid 500); 21 Aug 2007 15:13:50 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 63775 invoked by uid 99); 21 Aug 2007 15:13:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 08:13:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.69.240.189] (HELO server20.leipzig-online.net) (217.69.240.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 15:14:19 +0000 Received: from ewerk.com (unknown [192.168.64.251]) by server20.leipzig-online.net (Postfix) with ESMTP id 1302E6E4203 for ; Tue, 21 Aug 2007 17:13:24 +0200 (CEST) Received: from 192.168.127.15 by ewerk.com with SMTP; Tue, 21 Aug 2007 17:13:23 +0200 Content-class: urn:content-classes:message Subject: Enforce complex type definition in WSDL MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 21 Aug 2007 17:13:23 +0200 Message-ID: <6D31001F0497EC49B7E04EBF6DE7F1A16B7528@SELMA02.intranet.ewerk.com> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Enforce complex type definition in WSDL Thread-Index: AcfkBdDd3B3NdBj5Q/6EDrB2wbYqYg== From: "Holger Stolzenberg" To: X-Virus-Checked: Checked by ClamAV on apache.org Hi folks, Using CXF 2.0.1-INCUBATOR + JAXB Databinding: I have a ProductService SEI with the following signature: public ServiceStatus getProductById( int id ); public ServiceStatus getProductByToken( String token ); So for this WS the ServiceStatus object is defined in the WSDL. This = ServiceStatus object is a wrapper that holds the services status = outcome, e.g. code ... , and the product itself if loaded. For that it = also has a geberic method public Object getObject(); In an special use case this method should return an Object of the type = lets say 'Product'. Because the Product class itself has never been = declared or used in the SEI it won=B4t show up in the WSDL. But there I = need the complex type definition for 'Product' in order to ensure class = mapping for a PHP client. As a workaround I put the following method to the SEI: public void noop( Product product ); Now the Product class has been declared in the SEI abd therefore a = complex type definition is created in the WSDL. Everything works fine = now. My question is how can I force the creation of a complex type in the = WSDL that my service may return but has not been declared or used = somewhere in the SEI?? Mit lieben Gr=FC=DFen aus dem eWerk | Holger Stolzenberg | Softwareentwickler | | Gesch=E4ftsf=FChrer:=20 | Frank Richter, Erik Wende, Hendrik Schubert | | eWerk IT GmbH | Markt 16 | Leipzig 04109 | http://www.ewerk.com | HRB 9065, AG Leipzig | Hauptniederlassung Leipzig | | fon +49.341.4 26 49-0 | fax +49.341.4 26 49-88 | mailto:h.stolzenberg@ewerk.com | | Support: | fon 0700 CALLME24 (0700 22556324) | fax 0700 CALLME24 (0700 22556324) | | Ausk=FCnfte und Angebote per Mail | sind freibleibend und unverbindlich.=20