Hi Dave,
You should really only have to create your own QueryHandler if you want to
intercept the wsdl; generation. And then register it with the
QueryHandlerRegistry, there is no need for you to have to create your own
registry also.
e.g.
<bean id="org.apache.cxf.transports.http.QueryHandlerRegistry"
class="org.apache.cxf.transport.http.QueryHandlerRegistryImpl">
<property name="bus" ref="cxf"/>
<property name="queryHandlers">
<list>
<bean
class="this.is.MyQueryHandler ">
<property name="bus" ref="cxf"/>
</bean>
</list>
</property>
</bean>
Seán.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave
Burford
Sent: 29 January 2009 16:13
To: [email protected]
Subject: Intercept the generation of wsdl??
Hello!
I need to intercept CXF's wsdl generation.
To do so, It looks like I need to create my own class that implements
QueryHandlerRegistry.
I can see where the default implementation is created in cfx.xml :
<bean id="org.apache.cxf.transports.http.QueryHandlerRegistry"
class="org.apache.cxf.transport.http.QueryHandlerRegistryImpl">
<property name="bus" ref="cxf"/>
<property name="queryHandlers">
<list>
<bean
class="org.apache.cxf.transport.http.WSDLQueryHandler">
<property name="bus" ref="cxf"/>
</bean>
</list>
</property>
</bean>
And, there is a reference in bus-extensions.xml:
<extension
class="org.apache.cxf.transport.http.QueryHandlerRegistryImpl"
interface="org.apache.cxf.transports.http.QueryHandlerRegistry"/>
Can you let me know how I would stop it from using QueryHandlerRegistryImpl,
and get it to use my MyQueryHandlerRegistryImpl ??
Quite possibly a simple Spring question - but one that I don't know the
answer to!
Thanks in advance,
Dave