Hello to all.
I have made one web service using JAX-WS. In that i have made one method which return ArrayList.
code :
@WebMethod(operationName = "getStudentList")
public ArrayList getStudentList(@WebParam(name = "StudentId")
String StudentId)
{
ArrayList al = new ArrayList();
//TODO write your implementation code here
return al;
}
When i am trying to access this method from Client Application it will show error message such as.
Error Message : com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]
Why this error occur and what is solution.
Thanks in advance.