// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.util.ArrayList;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService(targetNamespace="vmsipc")
public class S1 {
    private ArrayList<String> msgs = new ArrayList<String>();
    @WebMethod
    public ArrayList<String> process(String msg) {
        msgs.add(msg);
        return msgs;
    }
    public static void main(String[] args) throws Exception {
        Endpoint.publish("http://localhost:8081/soap/S1", new S1());        
    }
}
