// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import org.tempuri.*;

public class Test {
    public static void main(String[] args) throws Exception {
        DataGatewayLocator loc = new DataGatewayLocator();
        DataGatewaySoap gate = loc.getDataGatewaySoap();
        Rec[] res = gate.getAll().getRec();
        for(int i = 0; i < res.length; i++) {
            System.out.println(res[i].getF1() + " " + res[i].getF2());
        }
    }
}
