My web service is in Net Beans and i want to pass dynamic values to method from Android studio
My json url is :
http://192.168.1.31:8084/adminWebservice/mywebservice/ShowSelectedCategory/Bar
My webservice class is:
@GET
@Path("/ShowSelectedCategory/{strRestroTypes}")
@Produces(MediaType.APPLICATION_JSON)
public List<CategoryTypes> ShowSelectedCategory(@PathParam("strRestroTypes")String[] strRestroTypes)
{
}
My entity file contains
@XmlRootElement(name="restaurant")
@XmlType(propOrder = {"restroid","restroname"})
public class RestaurantTypes {
private int restroid;
private String restroname;
//getter and setter
}
Through this code I can only pass one parameter, and not more than that Thanks in advance for help and suggestions