You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jason Thrasher <ja...@coachthrasher.com> on 2010/03/30 01:46:57 UTC

interceptor config for multiple javax.xml.ws.Service

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?

thanks,
Jason


-- 
View this message in context: http://old.nabble.com/interceptor-config-for-multiple-javax.xml.ws.Service-tp28076578p28076578.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: interceptor config for multiple javax.xml.ws.Service

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://dankulp.com/blog