Hi,

You need to configure a bus object with https and inject it into your
cxfEndpoint.

Please check out the example below. For more details check out the bus
configuration section of your CXF documentation.

There is no need to explicitly inject the bus into the endpoint. The
presence of a bus object in Spring automatically overrides the need for
creation of the default bus. 

Cheers,

Ashwin...

==========================================
    <cxf:cxfEndpoint 
           id="thebean" 
           wsdlURL="greeting-wsdl.xml" 
           serviceClass="tutorial.hanbo.webservice.Greeting" 
           address="http://localhost:8080/greeting"/> 

    <cxf:bus>
        <cxf:features>
            <p:policies/>
            <cxf:logging/>
        </cxf:features>
    </cxf:bus>
    
    <!-- -->
    <!-- Any services listening on port 9002 must use the following -->
    <!-- Transport Layer Security (TLS) settings -->
    <!-- -->
    <httpj:engine-factory bus="cxf">
        <httpj:engine port="9002">
            <httpj:tlsServerParameters>
                <sec:keyManagers keyPassword="password">
                    <sec:keyStore type="pkcs12" password="password"
resource="org/apache/cxf/systest/ws/wssc/certs/alice.p12"/>
                </sec:keyManagers>

            </httpj:tlsServerParameters>
        </httpj:engine>
    </httpj:engine-factory>

        </cxf:cxfEndpoint>

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/HTTP-basic-authentication-for-cxf-endpoint-tp3046867p3047032.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to