On 01/02/2013, Nuwan Bandara <mail.nu...@gmail.com> wrote:
> Hi,
> I have a RESTeasy web service. It accept POST requests. As an example
> client will call the web service like this
> http://localhost:8080/n-tweb-comm-war/ws/updateResultIndicator;accessionNumber=1;analyteCode=2;workstation=3;siteCode=4;testIndicator=5;testStatus=66
> My question;
>    1. is this a proper way to call POST web service?
>    2. if not how should I design the URL for a POST request?
> Thanks,
> Nuwan

1. If you mark the web service as @POST and the parametes as
@FormParam (as it should be in a POST service) - no, this is not
2. The proper way is to put the parameters in the body. To do that you
can use for example curl (http://curl.haxx.se/) : curl
"http://localhost:8080/n-tweb-comm-war/ws/updateResultIndicator"; -d
or some browser add like

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
Resteasy-users mailing list

Reply via email to