package net.agmodel.metsoap; import java.util.*; import javax.xml.rpc.Stub; /** * Title: * Description: * Copyright: Copyright (c) 2002 * Company: * @author * @version 1.0 */ public class MetSoapRemoteClient { private static Stub createProxy() { // Note: MetSoap_Impl is implementation-specific. return (Stub)(new MetSOAP_Impl().getMetSoapRemoteInterfacePort()); } public static void main(String[] args) { try { Stub genstub = createProxy(); genstub._setProperty( javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, args[0]); MetSoapRemoteInterface stub = (MetSoapRemoteInterface) genstub; String language=Locale.getDefault().getLanguage(); System.out.println("Getting list of databases"); MetSource[] databases=stub.listMetSources(language); for (int dbIndex=0;dbIndex