camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niteshjain <niteshjain...@gmail.com>
Subject Not able to consume HTTPS SOAP service using cxfEndpoint
Date Tue, 23 Aug 2016 05:41:27 GMT
I am using Camel 2.16.0 and cxf 3.1.2

Here I'm trying to consume https service -

<cxf:cxfEndpoint id=&quot;ShipServiceEndPoint&quot;
       serviceClass=&quot;com.test.ShipPortType&quot; address=&quot;https://test.com:443/web-services/ship&quot;
       wsdlURL=&quot;wsdl/ShipService.wsdl&quot;/>

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.

Mime
View raw message