You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Mark Webb <el...@gmail.com> on 2011/03/24 14:19:02 UTC
REST PUT example
I am looking for an example using CXF and the REST PUT command. I am
having problems finding an example or tutorial on your site. I have
googled around and can't find any good documentation on this.
Could you please forward me to some documentation that provides me
with this information.
Thanks,
Mark
Re: REST PUT example
Posted by Sergey Beryozkin <sb...@gmail.com>.
You can check the jaxrs/basic demo in the distribution, and also get the
examples distribution from the link I posted in the previous email
Sergey
On Thu, Mar 24, 2011 at 2:33 PM, elihusmails <el...@gmail.com> wrote:
> I would love to see a working example that allows me to put data and return
> objects. So if I have a web service with the following methods:
>
> public void setData( Person person );
>
> public ObjectA doStuff( ObjectB b);
>
> Thanks,
> Mark
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/REST-PUT-example-tp4262283p4262426.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
Re: REST PUT example
Posted by elihusmails <el...@gmail.com>.
I would love to see a working example that allows me to put data and return
objects. So if I have a web service with the following methods:
public void setData( Person person );
public ObjectA doStuff( ObjectB b);
Thanks,
Mark
--
View this message in context: http://cxf.547215.n5.nabble.com/REST-PUT-example-tp4262283p4262426.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: REST PUT example
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
Some more info is available here:
http://cxf.apache.org/docs/jax-rs-basics.html
The Talend user guide (registration is needed) is available here:
http://www.talend.com/resources/documentation.php
It has the tutorial too.
Matt - @WebService is only needed for the legacy CXF HTTP Binding, its
presence makes no difference to the JAX-RS runtime.
Cheers, Sergey
On Thu, Mar 24, 2011 at 1:26 PM, Matthew Glubb <ma...@madebykite.com> wrote:
> Mark,
>
> Not sure you mean for a client or a server but to configure a web service
> to accept PUT data:
>
> @WebService
> public class Service {
>
> @PUT
> @Path("/")
> public void add(Object object) {
> // Do stuff with PUT object
> }
> }
>
> Should work for you.
>
>
> Matt
>
>
> Matthew Glubb
> Technical Partner
>
> email: matthew.glubb@madebykite.com
> phone: 44 (0) 7715 754017
> skype: mglubb
>
> Kite
> http://madebykite.com
>
> --
> GPG: 96FF DE0E 0B7B 37F0 7F8D C54C E285 3D8F 5625 9244
>
> On 24 Mar 2011, at 13:19, Mark Webb wrote:
>
> > I am looking for an example using CXF and the REST PUT command. I am
> > having problems finding an example or tutorial on your site. I have
> > googled around and can't find any good documentation on this.
> >
> > Could you please forward me to some documentation that provides me
> > with this information.
> >
> > Thanks,
> > Mark
>
>
Re: REST PUT example
Posted by Matthew Glubb <ma...@madebykite.com>.
Mark,
Not sure you mean for a client or a server but to configure a web service to accept PUT data:
@WebService
public class Service {
@PUT
@Path("/")
public void add(Object object) {
// Do stuff with PUT object
}
}
Should work for you.
Matt
Matthew Glubb
Technical Partner
email: matthew.glubb@madebykite.com
phone: 44 (0) 7715 754017
skype: mglubb
Kite
http://madebykite.com
--
GPG: 96FF DE0E 0B7B 37F0 7F8D C54C E285 3D8F 5625 9244
On 24 Mar 2011, at 13:19, Mark Webb wrote:
> I am looking for an example using CXF and the REST PUT command. I am
> having problems finding an example or tutorial on your site. I have
> googled around and can't find any good documentation on this.
>
> Could you please forward me to some documentation that provides me
> with this information.
>
> Thanks,
> Mark