Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 95882 invoked from network); 2 Aug 2007 02:39:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2007 02:39:59 -0000 Received: (qmail 72554 invoked by uid 500); 2 Aug 2007 02:39:59 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 72529 invoked by uid 500); 2 Aug 2007 02:39:58 -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 72518 invoked by uid 99); 2 Aug 2007 02:39:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 19:39:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ning.jiang@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 02:39:31 +0000 X-IronPort-AV: E=Sophos;i="4.19,210,1183348800"; d="scan'208";a="3785089" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 01 Aug 2007 22:39:31 -0400 Received: from [10.129.9.176] ([10.129.9.176]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Aug 2007 22:39:25 -0400 Message-ID: <46B143C9.2000805@iona.com> Date: Thu, 02 Aug 2007 10:39:05 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: Re: bean stalks References: <46B1334C.9000209@iona.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Aug 2007 02:39:26.0526 (UTC) FILETIME=[57C4C5E0:01C7D4AE] X-Virus-Checked: Checked by ClamAV on apache.org Hi Benson, Here is the part of jaxws:endpoint schema ...... ....... There is not attribute of serviceFactory that is defined in the jaxws:endpoint element. Because if we put the serviceFactory as the element of the endpoint, we can support not only ref bean but also inner bean. And if we only has the serviceFactory attribute in the endpoint element, I am afraid we just only support the ref bean. If you want wrap the more detail of jaxws:endpoint, I think xslt with some kind of template may be your another option. You could define a more easy understanding element, just like this and then use the xslt to transform it to the CXF wanted jaxws:endpoint Willem. Benson Margulies wrote: > Willem, > > Thanks, Can you tell me, in passing, why jaxws:serviceFactory is a > nested element and not (even optionally) an attribute pointing to a > top-level bean? > > I've currently written the following, on the theory that my parser could > insist that a conventionally named service factory would be defined in > an included spring file, and so all I'd have to organize in Java is the > EndpointImpl corresponding to the endpoint decl. I still get this > sinking feeling that I'm capturing a lot of CXF internals into my Java > code, and I should be able to think of a way to tell my users to > interact with a simple XML file without that. > > At the end of the day, I want to hand a user a webapp that they can > easily configure to specify (1) the address of the endpoint and (2) a > list of items like writable='true'> > some verbose description > > > I don't want my users to have to edit into the middle of a minefield of > CXF details that, if disturbed, result in a disaster. > > I've already done a spring parser for the x:index thing. I could do one > for my service implementation class in two shakes. It's the > jaxws:endpoint that has me going around in circles. > > > class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> > > > > class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/> > class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/> > class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/> > > > > class="org.apache.cxf.aegis.databinding.AegisDatabinding"/> > > > > > > id="index_service_endpoint" > implementor="#index_service" > address="/NameIndex" > > > > > > > > > >> -----Original Message----- >> From: Willem Jiang [mailto:ning.jiang@iona.com] >> Sent: Wednesday, August 01, 2007 9:29 PM >> To: cxf-user@incubator.apache.org >> Subject: Re: bean stalks >> >> Hi Benson, >> >> You can find the jaxws.xsd from this url [1] >> Here is the code [2] which deals with the jaxws:endpoint parsing. >> >> >> > [1]http://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws > /s > >> rc/main/resources/schemas/jaxws.xsd >> >> > [2]http://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws > /s > >> rc/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java >> >> >> Willem. >> >> Benson Margulies wrote: >> >>> I'd like to build my own spring XML extension that wraps up the >>> > complex > >>> specification of an Aegis service endpoint. >>> >>> >>> >>> Can someone tell me what the fully expanded spring XML would be for >>> jaxws:endpoint, or should I just start reading the source? >>> >>> >>> >>> >>> >>> > >