Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 60420 invoked from network); 11 Nov 2008 18:24:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 18:24:57 -0000 Received: (qmail 8468 invoked by uid 500); 11 Nov 2008 18:25:04 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 8433 invoked by uid 500); 11 Nov 2008 18:25:04 -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 8422 invoked by uid 99); 11 Nov 2008 18:25:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 10:25:03 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.79.199.57] (HELO server.dankulp.com) (64.79.199.57) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 18:23:43 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id B1801197C981; Tue, 11 Nov 2008 13:23:56 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5-gr0 (2008-06-10) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.MRLQ95p2tg Received: from [192.168.1.140] (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 ESMTP id B9CB2197C0C1; Tue, 11 Nov 2008 13:23:55 -0500 (EST) From: Daniel Kulp To: dev@cxf.apache.org Subject: Re: Proposal -- removing irrelevent services from WSDL Date: Tue, 11 Nov 2008 13:24:02 -0500 User-Agent: KMail/1.9.9 Cc: Andrew Clegg References: <20359717.post@talk.nabble.com> In-Reply-To: <20359717.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811111324.03135.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-0.7 required=3.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.5-gr0 This is something I'm kind of "on the fence" about. There are definitely use cases where having the other services/ports in the wsdl so this behavior definitely would need to be optional. The usecases that I have in mind: 1) Clustering/Failover - the clustering/failover stuff kind of relies on this. If the other nodes in the cluster are defined in the wsdl, if something should occur to this node, the clients would automatically fail over to one of the other ports. Thus, they need to be there for that to work. 2) Other transports - If the service is exposed via multiple transports/bindings, the client could be created via the HTTP wsdl, but then select one of the other transports/bindings. For example, the wsdl may have both an HTTP transport and a JMS transport. The client may want to select the JMS port to take advantage of the async API's and stuff for scalability. Anyway, it's a good idea, but it would definitely need to be optional. Dan On Thursday 06 November 2008 6:56:01 am Andrew Clegg wrote: > Hey folks, > > I have a WSDL-first project which contains several service definitions, > each with a separate binding to a separate port type. > > When I go to the 'services' page for the WAR in Tomcat, I get a bunch of > links like: > > http://myserver:8080/MyWar/services/ServiceOne?wsdl > > http://myserver:8080/MyWar/services/ServiceTwo?wsdl > > etc. > > Exactly the same WSDL, but published to different URLs. > > What would be really neat is if CXF could trim out the unused services, > bindings and port type definitions when it publishes the WSDL. > > I know it already does some editing as the soap:address location attributes > are correct. Would the maintainers be interested in a patch to do this if I > volunteered? I *think* Axis2 does this, if I remember correctly, so there > might be some usable code in there. > > Interestingly, I just noticed the soap:operation soapAction attributes are > not updated the same way as soap:address is. They still have the localhost > test URLs which I hardcoded into my WSDL. Is this intentional, or a bug, or > a sign I've misconfigured something? (Does anything even use this?) > > Andrew. -- Daniel Kulp dkulp@apache.org http://dankulp.com/blog