I mean having a client in a separate application from the webapp service
application, and call the service remotely keeping the use of Spring context


Glen Mazza-2 wrote:
> 
> Please move this question to cxf-user.  The dev list is for development
> of CXF only.  Don't worry, CXF dev's are on both lists.  This keeps our
> mailing list search archives useful as well.
> 
> Still, I'm not sure what you mean by "non-standalone client" -- what is
> it that you want to develop?
> 
> Glen
> 
> Am Mittwoch, den 31.10.2007, 06:16 -0700 schrieb luismi:
>> Hello all,
>> 
>> I´m a newbie to all this, and i´d like to explain a problem I have yet to
>> find a solution for.
>> 
>> We´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 standalone 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);
>> 
>> Is there any way of building a non standalone client? is that possible?
>> 
>> Thx.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Spring---CXF-integration-non-standalone-client-tf4725423.html#a13511811
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to