Yea. I hit this while testing your testcase as well. For some oddball reason, using an address like "https" doesn't allow https to actually be used. You MUST configure a TLSClientParameters thing on the conduit prior to connecting. Kind of strange and I'm not exactly sure why. Thus, you have to get the TLS thing configured either via spring config or programatic config.
In anycase, I fixed it this morning. :-) I'm going to deploy new 2.0.5 and 2.1 snapshots later today. Dan On Monday 03 March 2008, yulinxp wrote: > My excitement for my first CXF client connection didn't last long. > Now I have another problem for my 2nd CXF client connection to > https://mdf.ingenixmedpoint.com/mdfwebservices/hpretriever.asmx?WSDL > > > The same exception happens even after I set httpconduit SSL. > Why it would get a HTTP URLConnection Factory at the first place?? > > :confused: > > org.apache.cxf.interceptor.Fault: Could not send Message. > at > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Mess >ageSenderInterceptor.java:48) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto >rChain.java:207) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205) at > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135 >) at $Proxy27.getHealthProfileNDA(Unknown Source) > at > https.mdf_ingenixmedpoint_com.mdfwebservices.hpretriever.HPRetrieverWS >Soap_HPRetrieverWSSoap_Client.main(HPRetrieverWSSoap_HPRetrieverWSSoap_ >Client.java:57) Caused by: java.io.IOException: Illegal Protocol https > for HTTP URLConnection Factory. > at > org.apache.cxf.transport.http.HttpURLConnectionFactoryImpl.createConne >ction(HttpURLConnectionFactoryImpl.java:44) at > org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:474 >) at > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Mess >ageSenderInterceptor.java:46) ... 7 more > Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could > not send Message. > at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175 >) at $Proxy27.getHealthProfileNDA(Unknown Source) > at > https.mdf_ingenixmedpoint_com.mdfwebservices.hpretriever.HPRetrieverWS >Soap_HPRetrieverWSSoap_Client.main(HPRetrieverWSSoap_HPRetrieverWSSoap_ >Client.java:57) Caused by: org.apache.cxf.interceptor.Fault: Could not > send Message. at > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Mess >ageSenderInterceptor.java:48) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto >rChain.java:207) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205) at > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135 >) ... 2 more > Caused by: java.io.IOException: Illegal Protocol https for HTTP > URLConnection Factory. > at > org.apache.cxf.transport.http.HttpURLConnectionFactoryImpl.createConne >ction(HttpURLConnectionFactoryImpl.java:44) at > org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:474 >) at > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(Mess >ageSenderInterceptor.java:46) ... 7 more -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog