/*
 * Created on 25 nov. 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package localhost.Axis1_2.HelloWorld_jws;

import javax.xml.rpc.ServiceFactory;

import de.jacomac.sayings.ArrayOfLanguageType;
import de.jacomac.sayings.LanguageType;
import de.jacomac.sayings.Service;
import de.jacomac.sayings.ServiceLocator;
import de.jacomac.sayings.ServiceSoap;
import de.jacomac.sayings.ServiceSoapStub;

/**
 * @author Xavier
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TestDynamic {

	public static void main(String[] args) {
		try {
			HelloWorldServiceLocator loc = (HelloWorldServiceLocator) ServiceFactory.newInstance().loadService(HelloWorldService.class);
			HelloWorldSoapBindingStub stub = (HelloWorldSoapBindingStub) loc.getPort(HelloWorldSoapBindingStub.class);
			stub.sayHello();
			}
			catch (Exception ex){
				ex.printStackTrace();
			}
	}
}
