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

import ws.soap.T1;
import ws.soap.Test; // modified
import ws.soap.Test_Service; // modified

public class TestClientNewDN {
    public static void main(String[] args) {
        Test_Service factory = new Test_Service(); // modified
        Test soap = factory.getPort(Test.class); // modified
        T1 o = soap.getOne(123);
        System.out.println(o.getF1() + " " + o.getF2().getValue());
        List<T1> all = soap.getAll().getT1(); // modified
        for(T1 one : all) {
            System.out.println(one.getF1() + " " + one.getF2().getValue());
        }
        System.out.println(soap.save(123, "ABC"));
        System.out.println(soap.saveObject(o));
        System.out.println(soap.delete(123));
    }
}
