Ruby 1.9.1 en Snow Leopard

  1. instalar ruby version manager (rvm)
    $ sudo gem install rvm
    $ rvm-install

    despues de esto seguir las instrucciones en pantalla para finalizar la instalacion de rvm.

  2. instalar ruby 1.9.1 usando rvm
    $ rvm install 1.9.1
  3. usar!
    $ rvm use 1.9.1
    $ ruby -v
    ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.3.2]
    

ServiceConstructionException: Could not find definition for service

Ok… just for the record, Al implementar un client ws con cxf tener cuidado de no estar usando un frontend proxy factory en lugar de un jaxws proxy factory como, en general, queremos.

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(MyService.class);
factory.setAddress("http://localhost/ws");
MyService client = (MyService) factory.create();

Entradas y comentarios feeds. 13 queries. 0.238 seconds.

60921 pages viewed, 16 today
29270 visits, 11 today
FireStats icon Powered by FireStats