import org.apache.wsif.*;
import java.util.Properties;
import java.rmi.RemoteException;

/**
 * User: Dylan Honorez
 * Company: XT-i
 * Date: 14-jul-2004
 * Time: 13:57:51
 */
public class ClientTest {
    public static void main (String[] args){
        WSIFServiceFactory wsfac = WSIFServiceFactory.newInstance();

        Properties p = System.getProperties();
        p.put("http.proxyHost", "10.1.6.254");
        p.put("http.proxyPort", "8080");
        p.put("http.nonProxyHosts", "localhost");

        try{
            WSIFService service = wsfac.getService(
                "http://10.1.6.58:8080/regproxy/regproxy?WSDL",
                null,
                null,
                "http://www.xti.com/",
                "ebXMLrrIF"
            );

            ebXMLrrIF stub = (ebXMLrrIF)service.getStub(ebXMLrrIF.class);
            stub.startUp();
        }
        catch (WSIFException e){
            e.printStackTrace();
        }
        catch (RemoteException e){
            e.printStackTrace();
        }
    }
}
