Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 66464 invoked from network); 13 Jul 2007 22:06:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 22:06:01 -0000 Received: (qmail 68358 invoked by uid 500); 13 Jul 2007 22:06:03 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 68116 invoked by uid 500); 13 Jul 2007 22:06:03 -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 68096 invoked by uid 99); 13 Jul 2007 22:06:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 15:06:03 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (herse.apache.org: transitioning domain of bim2007@basistech.com does not designate 199.88.205.99 as permitted sender) Received: from [199.88.205.99] (HELO mail.basistech.com) (199.88.205.99) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 15:05:57 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: WSDL service-name Date: Fri, 13 Jul 2007 18:05:30 -0400 Message-ID: In-Reply-To: <7b774c950707131446o1c408318sb7a912c183c01208@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WSDL service-name Thread-Index: AcfFl0oDbYdo6/msSH6xgXSh0CpR5wAAod3w References: <7b774c950707131446o1c408318sb7a912c183c01208@mail.gmail.com> From: "Benson Margulies" To: X-Virus-Checked: Checked by ClamAV on apache.org Out of curiosity, if I wanted the primary source of annotations to be the interface, then the cure would be to put endpointInterface on the interface? > -----Original Message----- > From: Dan Diephouse [mailto:dan@envoisolutions.com] > Sent: Friday, July 13, 2007 5:46 PM > To: cxf-user@incubator.apache.org > Subject: Re: WSDL service-name >=20 > If you take away the serviceFactory.setServiceclass() line I think it'll > fix > your problem. Effectively you're telling CXF not to look at the > @WebService > annotation on the NameIndexServiceImpl, which I don't think is what you > want > to do :-). CXF will automatically introspect the service bean and find the > endpoint interface via the @WebService.endpointInterface annotation, so > that > line is completely not needed. >=20 > Cheers, > - Dan >=20 > On 7/13/07, Benson Margulies wrote: > > > > This annotation is on the implementation class (named > > NameIndexServiceImpl) > > > > @WebService(serviceName =3D "NameIndex", endpointInterface =3D > > "com.basistech.rnm.index.ws.NameIndexService", > > targetNamespace=3D"urn:com.basistech.rnm.index.ws") > > > > This annotation is on the interface (named NameIndexService) > > > > @WebService(name=3D"NameIndex", > > targetNamespace=3D"urn:com.basistech.rnm.index.ws") > > > > The startup looks like this: > > > > serviceFactory.setAddress("http://localhost:" + port + > > "/NameIndex"); > > serviceFactory.setServiceBean(new > > NameIndexServiceImpl(configPath)); > > serviceFactory.setServiceClass(NameIndexService.class); > > > > And the wsdl comes out like this: ... > > > > > targetNamespace=3D"urn:com.basistech.rnm.index.ws"> > > > > How do I get rid of the extra 'service'? > > > > >=20 >=20 > -- > Dan Diephouse > Envoi Solutions > http://envoisolutions.com | http://netzooid.com/blog