users@jersey.java.net

Re: [Jersey] New to REST - How to send data for POST method

From: Leonardo <sombriks_at_gmail.com>
Date: Wed, 1 Sep 2010 10:27:05 -0300

see the "server":

http://pastebin.com/4t6CS1mi
http://pastebin.com/1MZgrPNv

and the client aswell:

http://pastebin.com/8FryX4pX
http://pastebin.com/Z8RJKpyM

2010/9/1 piranha <piranha.urs_at_gmail.com>:
>
> Hi there,
>
> I'm new to REST. I'm little bit confused with POST.
>
> I'm able to implement GET method successfully. My problem is i don't know
> how to do a POST implementation.
>
> My understanding is, to create a new row of data into a database using POST
> method, we need to pass the data as parameters in the request URL. Am i
> correct, please help me.
>
> For Ex : http://RestApp/Addresource/{id}/{fName}/{lName} , Please correct
> me.
>
> Also, if i'm supposed to send the data in the form of xml, how can i pass
> the xml with request url?
> --
> View this message in context: http://jersey.576304.n2.nabble.com/New-to-REST-How-to-send-data-for-POST-method-tp5486775p5486775.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>