Url to invoke the java web service -
i have web service below. body please tell me url invoke getuserdetails();
....://localhost:8080/jersey-rest/rest/hellow / want url after hellow/....
@path("/hellow") public class helloworldservice { @get @path("/{name1}/{name2}/") public response getuserdetails(@pathparam("name1") string name1,@pathparam("name2") string name2){ string output = "user info .. "+name1+name2 ; return response.status(200).entity(output).build(); }
thank you
....://localhost:8080/jersey-rest/rest/hellow/joe/bob/ example
Comments
Post a Comment