Something like the following? It's isn't CXF, but it's from the main function of a plain old java command line that uses Spring to set up some things.
GenericApplicationContext appContext = new GenericApplicationContext(); XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(appContext); reader.loadBeanDefinitions(new ClassPathResource("META-INF/applicationContext.xml")); BrightPlanetHarvestDocumentSource source = (BrightPlanetHarvestDocumentSource) applicationContext .getBean("documentSource"); > -----Original Message----- > From: Glen Mazza [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 7:11 AM > To: cxf-user@incubator.apache.org > Subject: Using a spring-configured web service client from Java code > > Hello, for a Spring-defined web service client as shown here: > > http://cwiki.apache.org/confluence/display/CXF20DOC/Client+HTTP > +Transport#ClientHTTPTransport-Example > > Does anyone know of a simple Java Program that calls a bean like this? > > As far as I can see, the documentation gives us half the story, i.e., > how to configure a client using Spring, but not the other half--how to > activate this bean from a Java program. > > I'll update the documentation if someone can provide me information on > this. > > Thanks, > Glen >