Hi, try adding @Consumes("application/x-www-form-urlencoded")
cheers, Sergey
On Thu, Apr 1, 2010 at 1:48 AM, atest12 <[email protected]> wrote:
>
> This is my implemented class:
>
> public class HelloWorldServiceImpl implements HelloWorldService {
>
> public String sayHelloPost(String msg, String val) {
> String xml = "<xml><mytag>hello world " + msg + " and " +
> val +
> "</mytag></xml>";
> return xml;
> }
>
> }
>
> I've tried the FormParam as follows:
> @WebMethod
> @POST
> @Path("/sayhello")
>
> String sayHelloPost(@FormParam("pmsg")String pmsg,
> @FormParam("pval")String
> pval);
>
> However, I'm getting only the first variable populated, i.e. in Tomcat the
> Payload shows:
> pmsg=adam&pval=smith&
>
> and only pmsg gets populated with this above value.
>
> Maybe my client doesn't call the service correctly.
>
> --
> View this message in context:
> http://old.nabble.com/Passing-multi-parameters-to-a-post-RESTful-call-tp28103206p28103414.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>