Hi,

I am new to Restful services. I have designed a sample restful web service. Following is my resource class

package project1;

import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;

@Path("/helloworld")
public class HelloRS {

// The Java method will process HTTP GET requests
@GET
// The Java method will produce content identified by the MIME Media
// type "text/plain"
@Produces("text/plain")
public String getClichedMessage() {
// Return some cliched textual content
return "Hello World";
}

@POST
// The Java method will produce content identified by the MIME Media
// type "text/plain"
@Path("post")
@Produces("text/plain")
public String getPostMessage() {
// Return some cliched textual content
return "Post Request";
}
}

I am deploying it as a war file in weblogic app server. I am able to invoke the GET requests using the url http://localhost:port/<context-root>/helloworld. But my POST requests are not working. The url to pass the post request is not working .... http://localhost:port/<context-root>/helloworld/post.

Please tell me to how to make a post request.

Thanks
Neha