Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 52673 invoked from network); 18 Sep 2009 06:39:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 06:39:11 -0000 Received: (qmail 20575 invoked by uid 500); 18 Sep 2009 06:39:10 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 20513 invoked by uid 500); 18 Sep 2009 06:39:10 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 20503 invoked by uid 99); 18 Sep 2009 06:39:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 06:39:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.75.158.78] (HELO mail.liquid-reality.de) (62.75.158.78) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 06:39:00 +0000 Received: from [10.0.0.101] (HSI-KBW-085-216-025-040.hsi.kabelbw.de [85.216.25.40]) by mail.liquid-reality.de (Postfix) with ESMTP id E3309B38002 for ; Fri, 18 Sep 2009 06:38:37 +0000 (UTC) Message-ID: <4AB32AFA.8060704@die-schneider.net> Date: Fri, 18 Sep 2009 08:38:50 +0200 From: Christian Schneider User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: dev@cxf.apache.org Subject: Re: How do I write and test a sample? References: <4AB0CD2A.9090406@die-schneider.net> <4AB0DB0A.6050300@die-schneider.net> <4AB2B7F9.6020302@die-schneider.net> <25501102.post@talk.nabble.com> In-Reply-To: <25501102.post@talk.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Glen, perhaps you can use what implemented some days ago. The following issues describe a way to read WSDLs from a maven repo or to write WSDLs to a maven repo. https://issues.apache.org/jira/browse/CXF-2276 https://issues.apache.org/jira/browse/CXF-2275 So you can specifiy that the WSDL for client and server is simply read from the maven repo. Btw. you can avoid using the WSDL at runtime. If you generate the code and configure your service like this in spring the WSDL is not necessary: ServiceName and endpointName are arbitrary names. They only matter if someone tries to look at the generated wsdl with ?wsdl. Greetings Christian Glen Mazza schrieb: > Normally, you're creating the SOAP client for somebody else's web service, > so, yes, you'll have the code generation within the client's pom. My > SOAP-client only example does that: > http://www.jroller.com/gmazza/entry/creating_a_soap_client_with > > Creating a special jar for the wsdl-first example was just a simplicity > issue so as not to duplicate the JAX-WS code generation for both service and > client. It's not perfect; namely, the *Service.java file will still > hardcode a specific default reference to the WSDL file on the local machine, > not helpful if the client and service are on different machines. To > increase portability, I was thinking of somehow including the WSDL in the > JAR file and having the *Service.java file point to *that* WSDL if possible. > Still, for a simple tutorial the current method works. > > Glen > > > Christian Schneider wrote: > >> So I think my problem is solved but thanks for the nice example. I have >> a question about the example. You create code from the wsdl into a >> special jar. Wouldn´t it be easier to include the code generation into >> the client and the server pom? >> >> Greetings >> >> Christian >> >> > >