On Monday 16 August 2010 9:26:17 am Alex Shneyderman wrote:
> Hi, all!
> 
> I wonder if there is a way to declare the following
> 
> <http:conduit
> name="{urn:my.namesapce.net}OrderService_v1Port.http-conduit">
> <http:tlsClientParameters disableCNCheck="true" secureSocketProtocol="SSL"
> /> <http:client AutoRedirect="true" Connection="Keep-Alive"
> ConnectionTimeout="10000" ReceiveTimeout="10000"
> ProxyServer="128.59.176.1" ProxyServerPort="43567" />
> </http:conduit>
> 
> without any of the http: namespace trickery. I wonder if anyone has a
> sample of this?

I don't have a sample, but it's definitely possible.   A bean of type 
org.apache.cxf.transport.http.HTTPConduit and set abstract=true would be 
equivalent.   You might want to look at the javadoc for the HTTPConduit

http://cxf.apache.org/javadoc/latest/org/apache/cxf/transport/http/HTTPConduit.html

as kind of a starting point for the properties that can be set. Some may be a 
bit tricky to set, but others should be easy.  The ClientParams is easy.  Just 
normal bean properties.   The tlsClientParams may be a bit trickier if you 
need to deal with setting actual trust managers and keystores and such.  The 
spring namespace handler is designed to setup those things much easier.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to