You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Marcelo Fernandes <ma...@hotmail.com> on 2007/05/23 16:44:38 UTC
spring endpoint configuration
Hi all, First of all, congratulations for cxf. It fits perfect to my project! Using the tutorial, I saw the way to declare server beans:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsdhttp://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <jaxws:endpoint id="helloWorld" implementor="demo.spring.HelloWorldImpl" address="/HelloWorld" /> </beans> How can I change the implementor tag in <javaws:endpoint> to use the id of declared bean at spring config file instead of a class impl name? Thanks in advance,marcelo
_________________________________________________________________
Obtenha o novo Windows Live Messenger!
http://get.live.com/messenger/overview
Re: spring endpoint configuration
Posted by Brice Ruth <bd...@gmail.com>.
I dug through the src to figure out just this. Looks like if you have your
id "myServiceImpl" - provide an implementor="#myServiceImpl" instead of the
class name.
See org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java#111
-Brice
On 5/23/07, Marcelo Fernandes <ma...@hotmail.com> wrote:
>
> Hi all, First of all, congratulations for cxf. It fits perfect to my
> project! Using the tutorial, I saw the way to declare server beans:<beans
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="
> http://cxf.apache.org/jaxws" xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsdhttp://cxf.apache.org/jaxws
> http://cxf.apache.org/schema/jaxws.xsd"> <import
> resource="classpath:META-INF/cxf/cxf.xml" /> <import
> resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import
> resource="classpath:META-INF/cxf/cxf-servlet.xml"
> /> <jaxws:endpoint id="helloWorld" implementor="
> demo.spring.HelloWorldImpl" address="/HelloWorld"
> /> </beans> How can I change the implementor tag in
> <javaws:endpoint> to use the id of declared bean at spring config file
> instead of a class impl name? Thanks in advance,marcelo
> _________________________________________________________________
> Obtenha o novo Windows Live Messenger!
> http://get.live.com/messenger/overview
--
Brice Ruth
Software Engineer, Madison WI