java web service get parameter while using post method -
i did java rest web service using method.the web service works fine method.but when try post method doesn't display anything. below simple code test post method. please me in solving issue.
@path("/post") public class testpost { @post @path("/test") public string post(@queryparam("param") string msg) { string output = "post:hello: "+msg; return output; } }
public string post(@queryparam("param") string msg) {
there no @queryparam
post. get.
for post, should use @requestparam
Comments
Post a Comment