This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using CXF 2.2 for implementing restful services. I have a post method in the service
public boolean login(@FormParam("userName") String userName,
@FormParam("password") String password )
I am not able to get the form param values in the service class there are always null. Does CXF 2.2 support @FromParam? If yes, is there any configuration to make it to work?
I am using apache commons http client to test my service:
PostMethod post = new PostMethod("http://localhost:8080/rest/login");
HttpClient httpclient = new HttpClient();
int result = httpclient.executeMethod(post);
Could any one suggest me where am i doing wrong?
Joined: Jun 03, 2005
I realized i made a silly mistake. It works now.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com