Hi all
I just start with CXF and i have a little problem with the post method.
Here's my code:
- myClass.java
@Path("test")
public class myClass{
@POST
@Path("/newtest")
public String myMethod(String myParam){
return myParam;
}
}
To test my webservice, i execute this code:
public static void main(String args[]) {
PostMethod post = new PostMethod("http://localhost:8080/test/newtest");
HttpClient httpclient = new HttpClient();
try {
int result = httpclient.executeMethod(post);
}finally {
post.releaseConnection();
}
}
My question is how do I specify the parameter "myParam" in the main method?
Thanks for your help
--
View this message in context:
http://www.nabble.com/CXF-Rest-Post-Method-tp18144858p18144858.html
Sent from the cxf-user mailing list archive at Nabble.com.