Thanks for your reply. I added the http:conduit with the tlsClientParameters element set as you advised. However I still see the error on instantiating the client.
My client xml file (name testContext.xml) is as follows: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> <http:conduit name="{http://marketing.ews.yahooapis.com/V4}BasicReportService.http-conduit"> <http:tlsClientParameters disableCNCheck="true" secureSocketProtocol="SSL"/> </http:conduit> <jaxws:client id="client" serviceClass="com.mypackage.BasicReportServiceService" wsdlLocation="https://marketing.ews.yahooapis.com/services/V4/BasicReportService?wsdl"/> </beans> dkulp wrote: > > On Friday 05 December 2008 2:44:41 pm Sriram C wrote: >> Hi, >> I am accessing a SOAP service over https using CXF 2.1.3. The CN on the >> cert for the service doesn't match the SSLSessionHost, so I need to set a >> default host name verifier on HttpsURLConnection. I do this in the code >> and >> it works fine, however I would like to move the client bootstrapping to >> Spring and am unable to figure out how to set the default host name >> verifier via Spring configuration. Please help me by pointing @ the >> appropriate docs or examples. > > I don't think there is a way via config right now. The closest is to put > the > disableCNCheck="true" attribute onto the tlsClientParameters element to > completely turn off the hostname check. > > > -- > Daniel Kulp > [EMAIL PROTECTED] > http://dankulp.com/blog > > -- View this message in context: http://www.nabble.com/Set-custom-HostnameVerifier-on-jaxws%3Aclient-definition-tp20861174p20920423.html Sent from the cxf-user mailing list archive at Nabble.com.
