Hi,
You can use the below configuration to inject an invoker for the server:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
<jaxws:server id="MyInvoker"
serviceClass="org.apache.hello_world_soap_http.Greeter"
address="/greeter">
<jaxws:invoker>
<bean class="MyInvoker">
<constructor-arg>
<bean class="org.apache.hello_world_soap_http.GreeterImpl"/>
</constructor-arg>
</bean>
</jaxws:invoker>
</jaxws:server>
</beans>
So you do not need to create your own servlet since it can do it by
configuration .
Cheers
Jim
Lukas Zapletal wrote:
Hello,
I need to set up invoker for my service but I cant find the proper XML
tags for the configuration in the documentation:
http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html
How to do this?
And if I like to do this from the code where should I put it? I mean
when CXF run as Servlet I have no clue where to put this code:
Endpoint e = Endpoint.publish(...);
e.setInvoker(new MyInvoker());
My first idea were to create my very own servlet that will override
CXFServlet.init method (and nothing else). Is this a standard way?
Thank you