On Wednesday, November 23, 2011 12:58:17 PM Alex Shneyderman wrote:
> Hello,
> 
> I have a requirement where I need to configure a client proxy that
> does not actually make http request to the endpoint. We use
> org.apache.cxf.jaxws.JaxWsProxyFactoryBean to instantiate client
> proxies. Is there a way to instruct the factory to construct proxy in
> a way where calls to the remote end point are diverted to the calls to
> the local object instance?
> 
> I want to preserve all the logging that we have configured on this
> proxy (we log request/response soap messages) - not sure if this is
> even possible.
> 
> Any hints/solutions are greatly appreciated.

We have a "local" transport which probably would be usable for you.   You can 
create a server (JaxWsServerFactoryBean) that uses a "local:/Foo" address and 
then in the JaxWsProxyFactoryBean use the same address.    That would pipe it 
through to the local object,but still do all the serialization and logging and 
such.

Dan


> 
> Cheers,
> Alex.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to