On Monday 29 March 2010 7:46:57 pm Jason Thrasher wrote:
> Hi All,
> I'm in process to implement a second Service client, and can't figure out
> the best way of attaching different sets of PhaseInterceptor (s), per
> Service. The services require different security configuration, and have
> unique interceptor chains, independent of each other. How is this done,
> and/or where is a reference?
>
> My client code for each service is working fine in isolation, with cxf.xml
> configured specifically for it, but now they will be combined into a larger
> application-tier component that will use both services. I expect to be
> able to do this completely in a spring configuration file, cxf.xml, but it
> appears that the CXFBusImpl only accepts global interceptor chain
> configuration. How can we specify a different Interceptor chain
> configuration, per Service?
Are the two services "different" in that they have a different port name? If
so, you can have jaxws:client elements in the config file with the name of the
port (the port element in the service element of the wsdl). Kind of like:
<jaxws:client name="{http://apache.org/hello_world_soap_http}SoapPort"
createdFromAPI="true">
<jaxws:inInterceptors......>
</jaxws:client>
--
Daniel Kulp
[email protected]
http://dankulp.com/blog