Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 4326 invoked from network); 4 May 2007 10:34:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 10:34:55 -0000 Received: (qmail 75597 invoked by uid 500); 4 May 2007 10:35:01 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 75547 invoked by uid 500); 4 May 2007 10:35:01 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 75538 invoked by uid 99); 4 May 2007 10:35:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 03:35:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 03:34:54 -0700 Received: by ug-out-1314.google.com with SMTP id y2so617310uge for ; Fri, 04 May 2007 03:34:32 -0700 (PDT) Received: by 10.82.150.20 with SMTP id x20mr6172679bud.1178274872131; Fri, 04 May 2007 03:34:32 -0700 (PDT) Received: by 10.82.100.10 with HTTP; Fri, 4 May 2007 03:34:32 -0700 (PDT) Message-ID: <7b774c950705040334t200990bevfa16ef6e41613f65@mail.gmail.com> Date: Fri, 4 May 2007 12:34:32 +0200 From: "Dan Diephouse" To: cxf-dev@incubator.apache.org Subject: Re: contract first using either XSD or XML plus Trang In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_35282_31040612.1178274872026" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_35282_31040612.1178274872026 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I think (b) is really important. It allows you to do schema first development without the bulls*t of the WSDL. Once you get that working, its real easy to support (a). FWIW, (b) is already somewhat possible. XSD->JAXB. Then you can write your service interface using JAXB beans. CXF should then generate the WSDL for you. (Although this will probably lose the original schema documentation, since JAXB will regenerate the schema. We need a way to supply just schemas). Cheers, - Dan On 5/2/07, James Strachan wrote: > > Writing WSDL by hand is a bit sucky. I enjoyed Craig's recent post... > > http://jroller.com/page/habuma?entry=contract_first_i_do_not > > I wondered if anyone had ever looked at creating some contract-first > tooling which was like this... > > a) example XML documents -> XSD > b) XSD with naming conventions/annotations -> WSDL > c) WSDL to Java (as we currently have) > > i.e. so folks could start at a, b or c rather than just forcing folks > to write WSDL. > > e.g. it'd be cool to extend the maven tooling so you could just list > the example XML documents to use to create the XSD to create the WSDL > to create the Java contracts :) > > On the home page it seems to kinda say there's code generation for XSD > to WSDL, but I've not spotted any examples yet. Is this true? I've > seen the XSD to Java (which seems to be like the JAXB2 XSD to Java > stuff). I was wondering if folks had looked at doing XSD to WSDL and > using trang to add example-XML to XSD etc? > > -- > James > ------- > http://macstrac.blogspot.com/ > -- Dan Diephouse Envoi Solutions http://envoisolutions.com | http://netzooid.com/blog ------=_Part_35282_31040612.1178274872026--