I am working on Restful web Service.I tried to create session id(from your example).Your example is working fine.I have just made few changes(1.Added Parameter to the method,created the session id after validating the user and my method type is POST)
Its throwing error for me(that method returning me a null value)
This is how my method will look like
public String SessionId(
@Context HttpServletRequest req,
@PathParam("username") String username,
@PathParam("passwd") String passwd)
I gave existing username and password.but still its throwing an error.
please tell me,where i have done wrong.
Thanks in Advance, Sudha.