-
Recent Posts
Archives
- June 2010 (2)
- May 2010 (1)
- October 2009 (1)
- July 2009 (1)
- June 2009 (1)
- May 2009 (1)
- April 2009 (1)
- February 2009 (2)
- January 2009 (1)
- July 2008 (2)
- June 2008 (4)
- May 2008 (3)
- April 2008 (6)
- March 2008 (4)
- February 2008 (6)
- January 2008 (7)
- December 2007 (2)
- November 2007 (2)
- September 2007 (2)
- August 2007 (1)
- January 2007 (2)
- November 2006 (1)
Categories
- Bofh (4)
- Certificaciones (1)
- Frameworks (2)
- Groovy (1)
- Java (13)
- Javascript (1)
- Jokes (5)
- Patterns (5)
- Procesos (1)
- Programming (1)
- Seguridad (4)
- Spring (1)
- Struts (3)
- Tomcat (2)
- Tool Box (1)
- Uncategorized (15)
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();