// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import gen.*;

public class C1 {
    public static void main(String[] args) throws Exception {
        S1Service factory = new S1Service();
        S1 soap = factory.getPort(S1.class);
        for(String msg : soap.process("Hi from Java!")) {
            System.out.println(msg);
        }
    }
}
