You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by niteshjain <ni...@gmail.com> on 2016/08/23 05:41:27 UTC
Not able to consume HTTPS SOAP service using cxfEndpoint
I am using Camel 2.16.0 and cxf 3.1.2
Here I'm trying to consume https service -
<cxf:cxfEndpoint id="ShipServiceEndPoint"
serviceClass="com.test.ShipPortType" address="https://test.com:443/web-services/ship"
wsdlURL="wsdl/ShipService.wsdl"/>
Configured httpj bus within camel xml as below -
<httpj:engine-factory bus="cxf">
<httpj:identifiedTLSServerParameters id="secure">
<httpj:tlsServerParameters>
<sec:keyManagers keyPassword="password">
<sec:keyStore type="JKS" password="password"
file="certs/fedex.jks"/>
</sec:keyManagers>
</httpj:tlsServerParameters>
</httpj:identifiedTLSServerParameters>
<httpj:engine port="443">
<httpj:tlsServerParametersRef id="secure" />
<httpj:threadingParameters minThreads="5"
maxThreads="15" />
<httpj:connector>
<bean class="org.eclipse.jetty.server.bio.SocketConnector">
<property name = "port" value="443" />
</bean>
</httpj:connector>
<httpj:handlers>
<bean class="org.eclipse.jetty.server.handler.DefaultHandler"/>
</httpj:handlers>
<httpj:sessionSupport>true</httpj:sessionSupport>
</httpj:engine>
</httpj:engine-factory>
but I'm getting the below error -
Caused by: java.io.IOException: *Protocol mismatch for port 443: engine's
protocol is http, the url protocol is https*
at
org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:276)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:121)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:154)
any suggestion what is wrong here ....
Thank you,
Nitesh
--
View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-consume-HTTPS-SOAP-service-using-cxfEndpoint-tp5786679.html
Sent from the Camel - Users mailing list archive at Nabble.com.