String namespaceURI = "http://acme.org/magicGball";
QName serviceQName = new QName(namespaceURI, "MagicGBallService");
QName portQName = new QName(namespaceURI, "MagicGBallPort");
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service service = serviceFactory.createService(wsdlURL, serviceQName);
MagicGBallEndpoint mGball = (MagicGBallEndpoint) service.getPort(portQName, MagicGBallEndpoint.class);
for (int i = 0; i < args.length; i++) {
String question = args[i];
String answer = mGball.ask(question);
System.out.println(answer);