}
URL wsdlURL = new URL("http://localhost:8080/ws-example?wsdl");
QName serviceName = new QName("http://archive.ws.demos.as.jboss.org/", "EndpointService");
System.out.println("JAXWS Client provider being used: " + Provider.provider().getClass());
Service service = Service.create(wsdlURL, serviceName);
Endpoint port = (Endpoint) service.getPort(Endpoint.class);
System.out.println("Sending request 'hello' to address http://localhost:8080/ws-example");
System.out.println("Got result : " + port.echo("hello"));
}