KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a webservice like @GET @Produces("application/json") @Path("{parameter1}/july/{param2},{param3},{param4}/month") public Month getResult(@PathParam("parameter1") String parameter1, @PathParam("param2") PathSegment param2 , @PathParam("param3") PathSegment param3, @PathParam("param4") PathSegment param4) { return action.getResult(parameter1, new Integer(param2.getPath()), new Integer(param3.getPath()), new Integer(param3.getPath())); } If I call this web service from my test class, it works fine; but if I call it through the browser, I get message as cannot find the service. The url I am using through the browser is http://localhost:8080/WebApp/services/seating/mylogin/july/1,0,0/month if I use the url as http://localhost:8080/WebApp/services/seating/mylogin/fly/1/0/0/month and change the path in the service accordingly it works fine, but the requirement is to use comma instead of slash. Is there any way we can use the webservice with comma-separated parameters in the url?
Tags (comma-separated)
Save Edits
Cancel