// retrieve the connection factory from JNDI
//
Context ctx = new InitialContext();
CXFConnectionFactory factory = (CXFConnectionFactory)ctx.lookup(EIS_JNDI_NAME);
// create the connection
//
CXFConnectionSpec spec = new CXFConnectionSpec();
spec.setWsdlURL(getClass().getResource("/wsdl/hello_world.wsdl"));
spec.setBusConfigURL(getClass().getResource("/etc/cxf_client.xml"));
spec.setServiceName(new QName("http://apache.org/hello_world_soap_http", "SOAPService"));
spec.setEndpointName(new QName("http://apache.org/hello_world_soap_http", "SoapPort"));
spec.setServiceClass(Greeter.class);
return factory.getConnection(spec);
}