Hello all,
I´m a newbie to all this, and i´d like to explain a doubt I have yet to find
a way for.
I´ve set up a demo application with web services using a Spring context
taking advantage of CXF features.
<bean id="cliente" class="indra.cm.demo.spring.ServicioSaldo"
factory-bean="clientFactory" factory-method="create"/>
<bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass"
value="indra.cm.demo.spring.ServicioSaldo"/>
<property name="address"
value="http://localhost:8080/Cxf_Spring_1/
ServicioSaldo"/>
</bean>
This is our client:
ClassPathXmlApplicationContext context
= new ClassPathXmlApplicationContext(new String[]
{"indra/
cm/demo/spring/client/cliente-beans.xml"});
ServicioSaldo client =
(ServicioSaldo)context.getBean("cliente");
String response1 = client.getOficina("22222");
String response2 = client.getSaldo("33333", "Luis M.
Fdez");
System.out.println("Response1: " + response1);
System.out.println("Response2: " + response2);
How is the way of calling the web service using the Spring Context from
other separate application?
Thx.
--
View this message in context:
http://www.nabble.com/Spring---CXF-client-tf4725691.html#a13511498
Sent from the cxf-user mailing list archive at Nabble.com.