Change to something like:

<bean id="MyImpl" class="minitest.service.impl.MiniServiceImpl"/>

 <jaxws:endpoint id="miniservice"
                   implementor="#MyImpl"
                   address="/MiniService">
                   <jaxws:properties>

I think there are a couple examples similar to that in the docs someplace.   
Basically, you want your impl to be created with a standard swing <bean> tag.   
Thus, Spring will inject things.   Then just reference it from the endpoint 
tag.

Dan



On Thu February 12 2009 1:47:45 pm paolocollector wrote:
> Woaw this was quick, thanks Dan!
>
> I just have this in cxf.xml:
>
>                 <jaxws:endpoint id="miniservice"
>                   implementor="minitest.service.impl.MiniServiceImpl"
>                   address="/MiniService">
>                   <jaxws:properties>
>
> I am sure you are right, Spring does not know about my webservice.
>
> I thought that putting
>   @WebService(endpointInterface = "minitest.service.MiniService",
> serviceName  = "MiniService")
> before the method was enough, like inserting @Service in front of my
> service.
> Obviously i was wrong, but I don't know where else I should put something
>
>
>
>
>
>
> What does your jaxws:endpoint config look like?   If you aren't using a ref
> to
> a spring defined bean for MiniServiceImpl, then spring wouldn't have
> created it and nothing would have gotten injected.
>
> Dan

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to