public static void main(String[] args) throws Exception {
//Use WS-Discovery to find references to services that implement the Greeter portType
WSDiscoveryClient client = new WSDiscoveryClient();
List<EndpointReference> references
= client.probe(new QName("http://cxf.apache.org/hello_world/discovery", "Greeter"));
client.close();
GreeterService service = new GreeterService();
//loop through all of them and have them greet me.
for (EndpointReference ref : references) {