Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 9705 invoked from network); 5 Jul 2007 16:07:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 16:07:14 -0000 Received: (qmail 86073 invoked by uid 500); 5 Jul 2007 16:07:16 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 86045 invoked by uid 500); 5 Jul 2007 16:07:16 -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 86025 invoked by uid 99); 5 Jul 2007 16:07:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 09:07:15 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of cblavier@gmail.com designates 209.85.146.176 as permitted sender) Received: from [209.85.146.176] (HELO wa-out-1112.google.com) (209.85.146.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 09:07:10 -0700 Received: by wa-out-1112.google.com with SMTP id n4so474029wag for ; Thu, 05 Jul 2007 09:06:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iJux7KPIW8I7rAAfBP9PvM0RpTdyhR74Dg0O5VFtbLK7V2IRjnK9tjYBQwNUpJtxr6cndLEKvsvuS9eglVNpdtSxlApWAF2BHYq3y4DqdLc42mK0FRXSwecR9vyiv2ljAyxbKh26JYgoXmki6HAHP3Nma6GdPilh3rSAJPid+Qo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KzBq4RY57Fea5+vGw3IGDyq5HnTQPuWQvceLq/Cu2lGGSyvDRQlRnVqx0LPRwk7RJII+GIddf7ksHp3Hw/HuanMWyRViF6fh5Xnpq6moVXYhalgsEqg0xo53NWP+IEw+ykSq//CKa0gl3GKtATOeLWGsqCT3D7r2wjGjbe2rCGg= Received: by 10.114.132.5 with SMTP id f5mr8248073wad.1183651609970; Thu, 05 Jul 2007 09:06:49 -0700 (PDT) Received: by 10.114.137.4 with HTTP; Thu, 5 Jul 2007 09:06:49 -0700 (PDT) Message-ID: <1b3b6ba50707050906y33e69759jc1743ce4effb5c03@mail.gmail.com> Date: Thu, 5 Jul 2007 18:06:49 +0200 From: "Christian Blavier" To: cxf-user@incubator.apache.org Subject: Re: Problem writing restful services with Spring In-Reply-To: <7b774c950707050720j27e2c7d7j4f834980dd470ce5@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_139278_11231112.1183651609939" References: <1b3b6ba50707030837l50d68fb7v83d34fa2d8c19712@mail.gmail.com> <1b3b6ba50707050108g443bf4cbrcd9d97b7e982a434@mail.gmail.com> <7b774c950707050720j27e2c7d7j4f834980dd470ce5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_139278_11231112.1183651609939 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline It doesn't work :( My method is annotated like this (in a @WebService class) : @Get @HttpResource(location="/books") *public* List getBooks() { *return* books; } and I get a "org.apache.cxf.interceptor.Fault: Invalid URL/Verb combination. Verb: GET Path: /books" exception when I try http://localhost:8080/yuipoc-webapp/cxf/bookService/books and the http://localhost:8080/yuipoc-webapp/cxf/bookService?wsdl address still works. 2007/7/5, Dan Diephouse : > > I *think* given your configuration, that the correct address to look at > might be: > > http://localhost:8080/yuipoc-webapp/cxf/bookService/books< > http://localhost:8080/yuipoc-webapp/cxf/books> > > The address attribute on specifies the root location for > the restful service. Then the URIs in @HttpResource are appended to it (if > you're using annotations). > > Cheers, > - Dan > > On 7/5/07, Christian Blavier wrote: > > > > No idea ? Anyone ? > > I'm still blocked on this.. :/ > > > > 2007/7/3, Christian Blavier : > > > > > > Hello, > > > > > > I am currently using CXF 2.0-SNAPSHOT, and I've got some trouble > writing > > > restful services with CXF. > > > > > > Here is my spring configuration : > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > implementor="#bookService" > > > > > > address="/bookService" > > > > > > bindingUri="http://apache.org/cxf/binding/http" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > beans> > > > My bookService is a simple java service with a single getBooks() > method > > > which return a collection of Books > > > I haven't got any error at jetty startup and I can see a wsdl at > > http://localhost:8080/yuipoc-webapp/cxf/bookService?wsdl > > > > > > but nothing at http://localhost:8080/yuipoc-webapp/cxf/books or any > > other > > > rest-like address > > > > > > Where am I wrong ? > > > Thanks > > > > > > > > > -- > Dan Diephouse > Envoi Solutions > http://envoisolutions.com | http://netzooid.com/blog > ------=_Part_139278_11231112.1183651609939--