2012-07-05 2 views
2

apache camel cxf를 사용하여 웹 서비스를 게시하려고합니다. http를 사용하여 게시 된 웹 서비스에 액세스 할 수 있습니다. 그러나 https를 사용하여 동일하게 구성하려고합니다. 그러나 나는 그것을 작동시킬 수 없다.apache camel cxf https가 작동하지 않습니다.

아래 ============================== 스프링 컨텍스트 부품, WSDL 파일

<camel-cxf:cxfEndpoint id="myEndoint" 
    address="http://localhost:9000/PostXml/" serviceClass="com.XXXXXXXXXX.techquest.ServicesPortType" 
    xmlns:ssp="http://techquest.interswitchng.com/" endpointName="ssp:PostXml" 
    serviceName="ssp:PostXml" /> 

<http:conduit name="*.http-conduit"> 
    <http:tlsClientParameters 
     secureSocketProtocol="SSL"> 
     <sec:keyManagers keyPassword="password"> 
      <sec:keyStore type="JKS" password="password" 
       file="A:/apache-sermfino_conf/cherry.jks" /> 
     </sec:keyManagers> 
     <sec:trustManagers> 
      <sec:keyStore type="JKS" password="password" 
       file="A:/apache-ser/truststore.jks" /> 
     </sec:trustManagers> 
     <sec:cipherSuitesFilter> 
      <!-- these filters ensure that a ciphersuite with export-suitable or 
       null encryption is used, but exclude anonymous Diffie-Hellman key change 
       as this is vulnerable to man-in-the-middle attacks --> 
      <sec:include>.*_EXPORT_.*</sec:include> 
      <sec:include>.*_EXPORT1024_.*</sec:include> 
      <sec:include>.*_WITH_DES_.*</sec:include> 
      <sec:include>.*_WITH_AES_.*</sec:include> 
      <sec:include>.*_WITH_NULL_.*</sec:include> 
      <sec:exclude>.*_DH_anon_.*</sec:exclude> 
     </sec:cipherSuitesFilter> 
    </http:tlsClientParameters> 
    <http:client AutoRedirect="true" Connection="Keep-Alive" /> 
</http:conduit> 

있다

===================================

<wsdl:portType name="ServicesPortType"> 
    <wsdl:operation name="PostXml"> 
     <wsdl:input message="tns:PostXml" /> 
     <wsdl:output message="tns:PostXml" /> 
    </wsdl:operation> 
</wsdl:portType>    
<wsdl:binding name="ServicesSoap12Binding" type="tns:ServicesPortType"> 
    <soap12:binding style="document" 
     transport="http://schemas.xmlsoap.org/soap/http" /> 
    <wsdl:operation name="PostXml"> 
     <soap12:operation soapAction="PostXml" style="document" /> 
     <wsdl:input> 
      <soap12:body use="literal" /> 
     </wsdl:input> 
     <wsdl:output> 
      <soap12:body use="literal" /> 
     </wsdl:output> 
    </wsdl:operation> 
</wsdl:binding>   
<wsdl:service name="ServicesPortTypeService"> 
    <wsdl:port binding="tns:ServicesSoap12Binding" name="ServicesSoap12Endpoint"> 
     <soap12:address location="http://localhost:9000/PostXml" /> 
    </wsdl:port> 
</wsdl:service> 

답변

3

첫 번째 구성은 서버 측이 아닌 http 클라이언트 용입니다. 현재 구성 예를 찾을 수 있습니다 [1]

[1] http://cxf.apache.org/docs/jetty-configuration.html