I wrote a very simple webservice which returns a ArrayList. when I try to test my web service using SOAPUI , the response is empty. I am deploying this application in Tomcat.
Here is my code:
@WebService(endpointInterface = "com.enterprise.ws.WebServiceInterface")
public class WebServiceImpl implements WebServiceInterface{
@Override
public ArrayList<String> listSample() {
// TODO Auto-generated method stub
ArrayList<String> arrayList = new ArrayList<String>();
arrayList.add("1212");
return arrayList;
}
}
Interface :
@WebService
@SOAPBinding(style = Style.RPC)
public interface WebServiceInterface {
@WebMethod
ArrayList<String> listSample();
}
Here is my SOAPUI response .
